diff options
| author | Bhumika Goyal <[email protected]> | 2016-09-12 23:02:47 +0530 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2016-09-13 14:51:53 +0200 |
| commit | 25b80dbe3fa6d76d8f19af0623d1fd8ed0dd671e (patch) | |
| tree | 0f2d1ba866a00a40e0544ae49bf4c9ac7df3b564 /tools/perf/scripts/python | |
| parent | 6e30293976983daf09eea8e882d48a09c80d5987 (diff) | |
Staging: comedi: drivers: Delete NULL check before pci_dev_put
The function pci_dev_put checks whether its argument is NULL and returns
immediately. Therefore, NULL test before the call if not needed.
Found using coccinelle:
@@
expression x;
@@
- if(x)
- pci_dev_put(x);
+ pci_dev_put(x);
Signed-off-by: Bhumika Goyal <[email protected]>
Reviewed-by: Ian Abbott <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions