commit | 3491ab63b45ea9b485683574081ed8535d42f2da | [log] [tgz] |
---|---|---|
author | Markus Elfring <elfring@users.sourceforge.net> | Sat Jul 23 10:05:12 2016 +0200 |
committer | Doug Ledford <dledford@redhat.com> | Wed Aug 03 21:03:35 2016 -0400 |
tree | 5ec8e5b1adde002a02e1cbcfce4fe8ba7aa068f5 | |
parent | f7ca535ba0b2268609d50bcd4bc3e8267dfd01b3 [diff] |
IB/mthca: NULL arg to pci_dev_put is OK The pci_dev_put() function tests whether its argument is NULL and then returns immediately. Thus the test around the call is not needed. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring <elfring@users.sourceforge.net> Reviewed-by: Leon Romanovsky <leonro@mellanox.com> Signed-off-by: Doug Ledford <dledford@redhat.com>