diff options
author | Niklas Schnelle <schnelle@linux.ibm.com> | 2021-08-06 11:28:40 +0300 |
---|---|---|
committer | Heiko Carstens <hca@linux.ibm.com> | 2021-08-25 12:03:32 +0300 |
commit | 02368b7cf6c7badefa13741aed7a8b91d9a11b19 (patch) | |
tree | 3eef6412102d66db057ec4b5eff56de9d8926f93 /lib/rbtree.c | |
parent | 7c0eaa78b9cddf56a9b1ae45b6b12bcfb0f34cec (diff) | |
download | linux-02368b7cf6c7badefa13741aed7a8b91d9a11b19.tar.xz |
s390/pci: cleanup resources only if necessary
It's currently safe to call zpci_cleanup_bus_resources() even if the
resources were never created but it makes no sense so check
zdev->has_resources before we call zpci_cleanup_bus_resources() in
zpci_release_device().
Reviewed-by: Matthew Rosato <mjrosato@linux.ibm.com>
Acked-by: Pierre Morel <pmorel@linux.ibm.com>
Signed-off-by: Niklas Schnelle <schnelle@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Diffstat (limited to 'lib/rbtree.c')
0 files changed, 0 insertions, 0 deletions