Skip to content

Commit 332959c

Browse files
Martin HabetsJames Bottomley
authored andcommitted
[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>
1 parent f28e716 commit 332959c

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

drivers/scsi/st.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3599,7 +3599,6 @@ static struct st_buffer *
35993599
tb->use_sg = max_sg;
36003600
tb->frp = (struct st_buf_fragment *)(&(tb->sg[0]) + max_sg);
36013601

3602-
tb->in_use = 1;
36033602
tb->dma = need_dma;
36043603
tb->buffer_size = got;
36053604

drivers/scsi/st.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ struct st_request {
3131

3232
/* The tape buffer descriptor. */
3333
struct st_buffer {
34-
unsigned char in_use;
3534
unsigned char dma; /* DMA-able buffer */
3635
unsigned char do_dio; /* direct i/o set up? */
3736
int buffer_size;

0 commit comments

Comments
 (0)