scsi: pmcraid: Remove set but not used 'res'
authorYe Bin <yebin10@huawei.com>
Wed, 9 Sep 2020 08:26:27 +0000 (16:26 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 10 Sep 2020 02:40:41 +0000 (22:40 -0400)
commit27216a9d85a0be1cf6e58b64c1cb626a6170c8f3
tree42fc00c20dfd45d84f8e64a108b3140e94b993fe
parentc8d67fbb60859d28d02ae431c5dd5641e3553f49
scsi: pmcraid: Remove set but not used 'res'

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

 drivers/scsi/pmcraid.c: In function ‘pmcraid_abort_cmd’:
 drivers/scsi/pmcraid.c:2863:33: warning: variable ‘res’ set but not
 used [-Wunused-but-set-variable]
   struct pmcraid_resource_entry *res;
                                    ^

Link: https://lore.kernel.org/r/20200909082627.101984-2-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/pmcraid.c