]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
scsi: fnic: Remove set but not used 'eth_hdrs_stripped'
authorJason Yan <yanaijie@huawei.com>
Mon, 31 Aug 2020 08:11:26 +0000 (16:11 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 3 Sep 2020 02:49:07 +0000 (22:49 -0400)
commit16d7fd9079af2a5104c445fe0e5d5ed8d403e2f2
tree65c98cce58115627d42f3f951203af20007820e0
parent446034e3d419a069348007bc84364cef017a442a
scsi: fnic: Remove set but not used 'eth_hdrs_stripped'

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

drivers/scsi/fnic/fnic_fcs.c: In function ‘fnic_rq_cmpl_frame_recv’:
drivers/scsi/fnic/fnic_fcs.c:840:15: warning: variable
‘eth_hdrs_stripped’ set but not used [-Wunused-but-set-variable]
  840 |  unsigned int eth_hdrs_stripped;
      |               ^~~~~~~~~~~~~~~~~

Link: https://lore.kernel.org/r/20200831081126.3251288-5-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/fnic/fnic_fcs.c