diff options
Diffstat (limited to 'block/bsg.c')
-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 @@ | |||
9 | * archive for more details. | 9 | * archive for more details. |
10 | * | 10 | * |
11 | */ | 11 | */ |
12 | /* | ||
13 | * TODO | ||
14 | * - Should this get merged, block/scsi_ioctl.c will be migrated into | ||
15 | * this file. To keep maintenance down, it's easier to have them | ||
16 | * seperated right now. | ||
17 | * | ||
18 | */ | ||
19 | #include <linux/module.h> | 12 | #include <linux/module.h> |
20 | #include <linux/init.h> | 13 | #include <linux/init.h> |
21 | #include <linux/file.h> | 14 | #include <linux/file.h> |
@@ -92,7 +85,6 @@ struct bsg_command { | |||
92 | struct bio *bidi_bio; | 85 | struct bio *bidi_bio; |
93 | int err; | 86 | int err; |
94 | struct sg_io_v4 hdr; | 87 | struct sg_io_v4 hdr; |
95 | struct sg_io_v4 __user *uhdr; | ||
96 | char sense[SCSI_SENSE_BUFFERSIZE]; | 88 | char sense[SCSI_SENSE_BUFFERSIZE]; |
97 | }; | 89 | }; |
98 | 90 | ||
@@ -620,7 +612,6 @@ static int __bsg_write(struct bsg_device *bd, const char __user *buf, | |||
620 | break; | 612 | break; |
621 | } | 613 | } |
622 | 614 | ||
623 | bc->uhdr = (struct sg_io_v4 __user *) buf; | ||
624 | if (copy_from_user(&bc->hdr, buf, sizeof(bc->hdr))) { | 615 | if (copy_from_user(&bc->hdr, buf, sizeof(bc->hdr))) { |
625 | ret = -EFAULT; | 616 | ret = -EFAULT; |
626 | break; | 617 | break; |