scsi: qla2xxx: Make qlafx00_process_aen() return void
authorJason Yan <yanaijie@huawei.com>
Wed, 6 May 2020 06:17:57 +0000 (14:17 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 8 May 2020 01:58:58 +0000 (21:58 -0400)
commit88bfdf565cbe33524308d912777f4267981d4be0
tree5bd3fe38cbc09802442e9350a8a556944b044d88
parentdbe6f49259dacc073c1ae602f383c177f57b1b8a
scsi: qla2xxx: Make qlafx00_process_aen() return void

No other functions use the return value of qlafx00_process_aen() and the
return value is always 0 now. Make it return void. This fixes the following
coccicheck warning:

drivers/scsi/qla2xxx/qla_mr.c:1716:5-9: Unneeded variable: "rval".
Return "0" on line 1768

Link: https://lore.kernel.org/r/20200506061757.19536-1-yanaijie@huawei.com
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Jason Yan <yanaijie@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/qla2xxx/qla_gbl.h
drivers/scsi/qla2xxx/qla_mr.c