]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: lpfc: Remove unneeded variable 'status' in lpfc_fcp_cpu_map_store()
authorYe Bin <yebin10@huawei.com>
Wed, 16 Sep 2020 02:28:59 +0000 (10:28 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Sat, 3 Oct 2020 02:04:59 +0000 (22:04 -0400)
commit6877f5f21ead59cae29ee5f1c65f6cee6f35ef25
tree08c3552a6ba72c264c68f108f89e21baea9ef383
parent593a42f3a819a527847a4181d35026ecb569d03f
scsi: lpfc: Remove unneeded variable 'status' in lpfc_fcp_cpu_map_store()

Fixes coccicheck warning:
drivers/scsi/lpfc/lpfc_attr.c:5341:5-11: Unneeded variable: "status". Return "- EINVAL" on line 5342

Link: https://lore.kernel.org/r/20200916022859.349089-1-yebin10@huawei.com
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Ye Bin <yebin10@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/lpfc/lpfc_attr.c