]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
scsi: snic: Remove unused 'xfer_len' variable
authorTom Rix <trix@redhat.com>
Tue, 28 Mar 2023 00:16:47 +0000 (20:16 -0400)
committerMartin K. Petersen <martin.petersen@oracle.com>
Mon, 3 Apr 2023 01:47:36 +0000 (21:47 -0400)
commit4e0966a4829178b3cc7d8dc8686d9d6fcc221187
treecfa02c05d2d9d6dccdd192806e6ab7f66e321953
parent7866e03b9825e1e08fc5136d3ab9a35ebabdc7f5
scsi: snic: Remove unused 'xfer_len' variable

clang with W=1 reports:

drivers/scsi/snic/snic_scsi.c:490:6: error: variable
  'xfer_len' set but not used [-Werror,-Wunused-but-set-variable]
        u64 xfer_len = 0;
            ^
This variable is not used so remove it.

Signed-off-by: Tom Rix <trix@redhat.com>
Link: https://lore.kernel.org/r/20230328001647.1778448-1-trix@redhat.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/snic/snic_scsi.c