diff options
author | Lee Jones <[email protected]> | 2020-07-21 17:41:21 +0100 |
---|---|---|
committer | Martin K. Petersen <[email protected]> | 2020-07-24 22:09:59 -0400 |
commit | b854460053ec44cc78f6514673dcfad3045c5a56 (patch) | |
tree | 8d233d3bfabc479ab356e9b134a329b88e88b10e /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | 4c2de9c54112fae35cd3e5879bb58020eb452798 (diff) |
scsi: qla4xxx: Check return value of pci_set_mwi()
pci_set_mwi() has 'warn_unused_result' so the result should be checked.
Fixes the following W=1 kernel build warning(s):
drivers/scsi/qla4xxx/ql4_init.c: In function ‘qla4xxx_pci_config’:
drivers/scsi/qla4xxx/ql4_init.c:664:6: warning: variable ‘status’ set but not used [-Wunused-but-set-variable]
And if 'status' is removed:
drivers/scsi/qla4xxx/ql4_init.c: In function ‘qla4xxx_pci_config’:
drivers/scsi/qla4xxx/ql4_init.c:666:2: warning: ignoring return value of ‘pci_set_mwi’, declared with attribute warn_unused_result [-Wunused-result]
666 | pci_set_mwi(ha->pdev);
| ^~~~~~~~~~~~~~~~~~~~~
Link: https://lore.kernel.org/r/[email protected]
Cc: [email protected]
Signed-off-by: Lee Jones <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions