diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2007-07-23 09:33:27 +0900 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.localdomain> | 2007-07-23 16:50:16 -0500 |
commit | 1079ddcb07e0c39b576cd60174ca00ed9545c163 (patch) | |
tree | d66a69299db61d01201ea2c9861bfa38cf092936 /block | |
parent | 598443a2124618fc8fe5a8bae32c129666ac3eab (diff) | |
download | linux-stable-1079ddcb07e0c39b576cd60174ca00ed9545c163.tar.gz linux-stable-1079ddcb07e0c39b576cd60174ca00ed9545c163.tar.bz2 linux-stable-1079ddcb07e0c39b576cd60174ca00ed9545c163.zip |
[SCSI] bsg: remove unnecessary code and comments
- kill uhdr in bsg_command structure
- it's not necessary to put SG v4 stuff to block/scsi_ioctl.c
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'block')
-rw-r--r-- | block/bsg.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/block/bsg.c b/block/bsg.c index 8e4de53311e1..12c287b98625 100644 --- a/block/bsg.c +++ b/block/bsg.c @@ -9,13 +9,6 @@ * archive for more details. * */ -/* - * TODO - * - Should this get merged, block/scsi_ioctl.c will be migrated into - * this file. To keep maintenance down, it's easier to have them - * seperated right now. - * - */ #include <linux/module.h> #include <linux/init.h> #include <linux/file.h> @@ -92,7 +85,6 @@ struct bsg_command { struct bio *bidi_bio; int err; struct sg_io_v4 hdr; - struct sg_io_v4 __user *uhdr; char sense[SCSI_SENSE_BUFFERSIZE]; }; @@ -620,7 +612,6 @@ static int __bsg_write(struct bsg_device *bd, const char __user *buf, break; } - bc->uhdr = (struct sg_io_v4 __user *) buf; if (copy_from_user(&bc->hdr, buf, sizeof(bc->hdr))) { ret = -EFAULT; break; |