aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorJeremy Sowden <[email protected]>2019-05-21 11:35:24 +0100
committerGreg Kroah-Hartman <[email protected]>2019-05-22 14:44:22 +0200
commit3df7e8a77e8cac1daea3ad0842ed3fd2105f98f0 (patch)
tree67cb721be2ef43ca601a32f03544c7ebdd7900cf /tools/perf/scripts/python/export-to-sqlite.py
parente416dad158f289ef2af48bf21fca53acc3935353 (diff)
staging: kpc2000: removed superfluous NULL checks from device attribute call-backs.
All the attribute show call-backs check whether pcard is NULL. However, pci_set_drvdata(pdev, pcard) is called before the sysfs files are created during probe, and pci_set_drvdata(pdev, NULL) is not called until after they are destroyed during remove; therefore, pcard will not be NULL, and we can drop the checks. Signed-off-by: Jeremy Sowden <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions