NVMe: Remove duplicate compat SG_IO code
authorKeith Busch <keith.busch@intel.com>
Wed, 27 Aug 2014 19:55:38 +0000 (13:55 -0600)
committerJens Axboe <axboe@fb.com>
Tue, 4 Nov 2014 20:17:09 +0000 (13:17 -0700)
commite179729a821c1b82375f5593533c027462e753b7
treeee79dce67ac9ad3c500c7197266d671648cad53e
parenta96d4f5c2da66a0c1537bfd8aaa868b69595476a
NVMe: Remove duplicate compat SG_IO code

We can return -ENOIOCTLCMD and the ioctl will be handled by
fs/compat_ioctl.c instead. This removes a lot of duplicate code in the
nvme driver.

Signed-off-by: Keith Busch <keith.busch@intel.com>
Signed-off-by: Matthew Wilcox <matthew.r.wilcox@intel.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/block/nvme-core.c
drivers/block/nvme-scsi.c