diff options
author | Martin Habets <errandir_news@mph.eclipse.co.uk> | 2006-06-28 10:40:36 -0400 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.il.steeleye.com> | 2006-06-29 11:06:30 -0400 |
commit | 332959cb521af6bb0281c7aae797f1f91dcb4c42 (patch) | |
tree | a53da8d1f0b7ec2a0118d71590ff9e071919d6aa /drivers | |
parent | f28e71617ddaf2483e3e5c5237103484a303743f (diff) |
[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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/scsi/st.c | 1 | ||||
-rw-r--r-- | drivers/scsi/st.h | 1 |
2 files changed, 0 insertions, 2 deletions
diff --git a/drivers/scsi/st.c b/drivers/scsi/st.c index b5218fc0ac86..756ceb93ddc8 100644 --- a/drivers/scsi/st.c +++ b/drivers/scsi/st.c | |||
@@ -3599,7 +3599,6 @@ static struct st_buffer * | |||
3599 | tb->use_sg = max_sg; | 3599 | tb->use_sg = max_sg; |
3600 | tb->frp = (struct st_buf_fragment *)(&(tb->sg[0]) + max_sg); | 3600 | tb->frp = (struct st_buf_fragment *)(&(tb->sg[0]) + max_sg); |
3601 | 3601 | ||
3602 | tb->in_use = 1; | ||
3603 | tb->dma = need_dma; | 3602 | tb->dma = need_dma; |
3604 | tb->buffer_size = got; | 3603 | tb->buffer_size = got; |
3605 | 3604 | ||
diff --git a/drivers/scsi/st.h b/drivers/scsi/st.h index 411209048d74..05a5cae126ec 100644 --- a/drivers/scsi/st.h +++ b/drivers/scsi/st.h | |||
@@ -31,7 +31,6 @@ struct st_request { | |||
31 | 31 | ||
32 | /* The tape buffer descriptor. */ | 32 | /* The tape buffer descriptor. */ |
33 | struct st_buffer { | 33 | struct st_buffer { |
34 | unsigned char in_use; | ||
35 | unsigned char dma; /* DMA-able buffer */ | 34 | unsigned char dma; /* DMA-able buffer */ |
36 | unsigned char do_dio; /* direct i/o set up? */ | 35 | unsigned char do_dio; /* direct i/o set up? */ |
37 | int buffer_size; | 36 | int buffer_size; |