aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorDamien Le Moal <[email protected]>2022-02-20 12:17:52 +0900
committerMartin K. Petersen <[email protected]>2022-02-22 21:31:18 -0500
commit23c486d19a6c5e4f96dfb25c9439089997588318 (patch)
tree3ba0d2dff107fe65ab0ed612d86e73037b9ba58e /tools/perf/scripts/python/stackcollapse.py
parente5039a92f1502c94f1fcf645995ee810394fb6cc (diff)
scsi: pm8001: Remove local variable in pm8001_pci_resume()
In pm8001_pci_resume(), the use of the u32 type for the local variable device_state causes a sparse warning: warning: incorrect type in assignment (different base types) expected unsigned int [usertype] device_state got restricted pci_power_t [usertype] current_state Since this variable is used only once in the function, remove it and use pdev->current_state directly. While at it, also add a blank line after the last local variable declaration. Link: https://lore.kernel.org/r/[email protected] Reviewed-by: John Garry <[email protected]> Reviewed-by: Jack Wang <[email protected]> Signed-off-by: Damien Le Moal <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions