scsi: qla1280: Remove set but not used variable in qla1280_mailbox_command()
authorJason Yan <yanaijie@huawei.com>
Mon, 7 Sep 2020 07:45:17 +0000 (15:45 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 10 Sep 2020 02:37:47 +0000 (22:37 -0400)
commitbf70bf28bf874c65001951bb955292a37c930e49
tree0f7b9b175da4795fb08c6cc301d9a944ac7feb8d
parent9b0f9e59bc81298f03f3582c40b07fe61d283303
scsi: qla1280: Remove set but not used variable in qla1280_mailbox_command()

This addresses the following gcc warning with "make W=1":

drivers/scsi/qla1280.c: In function ‘qla1280_mailbox_command’:
drivers/scsi/qla1280.c:2430:11: warning: variable ‘data’ set but not
used [-Wunused-but-set-variable]
 2430 |  uint16_t data;
      |           ^~~~

Link: https://lore.kernel.org/r/20200907074518.2326360-4-yanaijie@huawei.com
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Jason Yan <yanaijie@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/qla1280.c