]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
scsi: scsi_transport_fc: Remove unused 'desc_cnt' variable
authorTom Rix <trix@redhat.com>
Sun, 26 Mar 2023 00:32:22 +0000 (20:32 -0400)
committerMartin K. Petersen <martin.petersen@oracle.com>
Mon, 3 Apr 2023 01:37:57 +0000 (21:37 -0400)
commite324dd00fd17906ad9f0386f5e15d78da2e2b9fe
treea94f1b6e19bbf558112c621a211b9c901e5b0c52
parentca62009eff728c0a62ea76184adcc6be411f4066
scsi: scsi_transport_fc: Remove unused 'desc_cnt' variable

clang with W=1 reports:

drivers/scsi/scsi_transport_fc.c:908:6: error: variable
  'desc_cnt' set but not used [-Werror,-Wunused-but-set-variable]
        u32 desc_cnt = 0, bytes_remain;
            ^
This variable is not used so remove it.

Signed-off-by: Tom Rix <trix@redhat.com>
Link: https://lore.kernel.org/r/20230326003222.1343671-1-trix@redhat.com
Reviewed-by: Himanshu Madhani <himanshu.madhani@oracle.com>
Reviewed-by: Benjamin Block <bblock@linux.ibm.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/scsi_transport_fc.c