mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-14 22:44:27 +08:00
aa89d74e04
'amount_xferred' is used, but only in certain circumstances. Place the same stipulations on the defining/allocating of 'amount_xferred' as is placed when using it. We've been careful not to change any of the ordering semantics here. Fixes the following W=1 kernel build warning(s): drivers/scsi/aic7xxx/aic7xxx_osm.c: In function ‘ahc_done’: drivers/scsi/aic7xxx/aic7xxx_osm.c:1725:12: warning: variable ‘amount_xferred’ set but not used [-Wunused-but-set-variable] 1725 | uint32_t amount_xferred; | ^~~~~~~~~~~~~~ Link: https://lore.kernel.org/r/20200713074645.126138-22-lee.jones@linaro.org Cc: Hannes Reinecke <hare@suse.com> Cc: "Daniel M. Eischen" <deischen@iworks.InterWorks.org> Cc: Doug Ledford <dledford@redhat.com> Reviewed-by: Hannes Reinecke <hare@suse.de> Signed-off-by: Lee Jones <lee.jones@linaro.org> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com> |
||
---|---|---|
.. | ||
aicasm | ||
.gitignore | ||
aic7xxx_93cx6.c | ||
aic7xxx_93cx6.h | ||
aic7xxx_core.c | ||
aic7xxx_inline.h | ||
aic7xxx_osm_pci.c | ||
aic7xxx_osm.c | ||
aic7xxx_osm.h | ||
aic7xxx_pci.c | ||
aic7xxx_pci.h | ||
aic7xxx_proc.c | ||
aic7xxx_reg_print.c_shipped | ||
aic7xxx_reg.h_shipped | ||
aic7xxx_seq.h_shipped | ||
aic7xxx.h | ||
aic7xxx.reg | ||
aic7xxx.seq | ||
aic79xx_core.c | ||
aic79xx_inline.h | ||
aic79xx_osm_pci.c | ||
aic79xx_osm.c | ||
aic79xx_osm.h | ||
aic79xx_pci.c | ||
aic79xx_pci.h | ||
aic79xx_proc.c | ||
aic79xx_reg_print.c_shipped | ||
aic79xx_reg.h_shipped | ||
aic79xx_seq.h_shipped | ||
aic79xx.h | ||
aic79xx.reg | ||
aic79xx.seq | ||
aic7770_osm.c | ||
aic7770.c | ||
aiclib.h | ||
cam.h | ||
Kconfig.aic7xxx | ||
Kconfig.aic79xx | ||
Makefile | ||
queue.h | ||
scsi_iu.h | ||
scsi_message.h |