Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[SCSI] st: remove unused st_buffer.in_use

I noticed that in_use in st_buffer is not used. The patch below
against 2.6.17-rc3 removes it, assuming there is no future use for it.
It was tested in a sparc SS20 with a DLT4000.

Signed-off-by: Martin Habets <errandir_news@mph.eclipse.co.uk>
Acked-by: Kai M�kisara <kai.makisara@kolumbus.fi>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>

authored by

Martin Habets and committed by
James Bottomley
332959cb f28e7161

-2
-1
drivers/scsi/st.c
··· 3599 3599 tb->use_sg = max_sg; 3600 3600 tb->frp = (struct st_buf_fragment *)(&(tb->sg[0]) + max_sg); 3601 3601 3602 - tb->in_use = 1; 3603 3602 tb->dma = need_dma; 3604 3603 tb->buffer_size = got; 3605 3604
-1
drivers/scsi/st.h
··· 31 31 32 32 /* The tape buffer descriptor. */ 33 33 struct st_buffer { 34 - unsigned char in_use; 35 34 unsigned char dma; /* DMA-able buffer */ 36 35 unsigned char do_dio; /* direct i/o set up? */ 37 36 int buffer_size;