scsi: mpt3sas: remove redundant copy_from_user in _ctl_getiocinfo
authorMeng Xu <mengxu.gatech@gmail.com>
Wed, 20 Sep 2017 15:13:51 +0000 (11:13 -0400)
committerMartin K. Petersen <martin.petersen@oracle.com>
Mon, 25 Sep 2017 23:21:01 +0000 (19:21 -0400)
commitc0ff7e2c217d6b367cd0343f14866677f7cf4dc6
tree1776937f5ff6d10429394413cefc80f18c0ea6c2
parent08eb7f45de6131a72db7dd82607fd204d0d2bac2
scsi: mpt3sas: remove redundant copy_from_user in _ctl_getiocinfo

Since right after the user copy, we are going to memset(&karg, 0,
sizeof(karg)), the copy_from_user is redundant

Signed-off-by: Meng Xu <mengxu.gatech@gmail.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/mpt3sas/mpt3sas_ctl.c