diff options
| author | Jeremy Sowden <[email protected]> | 2019-05-21 11:35:24 +0100 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2019-05-22 14:44:22 +0200 |
| commit | 3df7e8a77e8cac1daea3ad0842ed3fd2105f98f0 (patch) | |
| tree | 67cb721be2ef43ca601a32f03544c7ebdd7900cf /tools/perf/scripts/python | |
| parent | e416dad158f289ef2af48bf21fca53acc3935353 (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')
0 files changed, 0 insertions, 0 deletions