aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/event_analyzing_sample.py
diff options
context:
space:
mode:
authorLee Jones <[email protected]>2020-07-13 08:46:37 +0100
committerMartin K. Petersen <[email protected]>2020-07-15 16:01:58 -0400
commitaa89d74e040aa0b91e06566ea28a532f937630c2 (patch)
tree6c7b10dfdc36b66153077bb64d6e748270ee834c /tools/perf/scripts/python/event_analyzing_sample.py
parent7097a517446fe62c6c53e3988e0d4fe536c35b17 (diff)
scsi: aic7xxx: Fix 'amount_xferred' set but not used issue
'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/[email protected] Cc: Hannes Reinecke <[email protected]> Cc: "Daniel M. Eischen" <[email protected]> Cc: Doug Ledford <[email protected]> Reviewed-by: Hannes Reinecke <[email protected]> Signed-off-by: Lee Jones <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions