]> git.baikalelectronics.ru Git - kernel.git/commit
IB/hfi1: Remove unneeded empty check in hfi1_mmu_rb_unregister()
authorDean Luick <dean.luick@intel.com>
Thu, 28 Jul 2016 16:27:36 +0000 (12:27 -0400)
committerDoug Ledford <dledford@redhat.com>
Wed, 3 Aug 2016 02:46:21 +0000 (22:46 -0400)
commit8ec311d46e5baf3b39105c0ded303127df16005e
tree57f019e8a0162b06d8c6b44e56d2d66c091efcf9
parent442ad8e0ee0842fe1683885191e9f771dbed231b
IB/hfi1: Remove unneeded empty check in hfi1_mmu_rb_unregister()

Checking if the rb tree is empty is redundant with the while loop which is
emptying the rb tree.

Reviewed-by: Ira Weiny <ira.weiny@intel.com>
Signed-off-by: Dean Luick <dean.luick@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/hfi1/mmu_rb.c