提交 332959cb 编写于 作者: M Martin Habets 提交者: James Bottomley

[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: NMartin Habets <errandir_news@mph.eclipse.co.uk>
Acked-by: NKai Mäkisara <kai.makisara@kolumbus.fi>
Signed-off-by: NJames Bottomley <James.Bottomley@SteelEye.com>
上级 f28e7161
...@@ -3599,7 +3599,6 @@ static struct st_buffer * ...@@ -3599,7 +3599,6 @@ static struct st_buffer *
tb->use_sg = max_sg; tb->use_sg = max_sg;
tb->frp = (struct st_buf_fragment *)(&(tb->sg[0]) + max_sg); tb->frp = (struct st_buf_fragment *)(&(tb->sg[0]) + max_sg);
tb->in_use = 1;
tb->dma = need_dma; tb->dma = need_dma;
tb->buffer_size = got; tb->buffer_size = got;
......
...@@ -31,7 +31,6 @@ struct st_request { ...@@ -31,7 +31,6 @@ struct st_request {
/* The tape buffer descriptor. */ /* The tape buffer descriptor. */
struct st_buffer { struct st_buffer {
unsigned char in_use;
unsigned char dma; /* DMA-able buffer */ unsigned char dma; /* DMA-able buffer */
unsigned char do_dio; /* direct i/o set up? */ unsigned char do_dio; /* direct i/o set up? */
int buffer_size; int buffer_size;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册