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)
commit20a42d08331c888207d81d8e4713e18250ac49cf
tree57f019e8a0162b06d8c6b44e56d2d66c091efcf9
parentea3a0ee52db0c2ec8d1d0ecdd21e650e6e183085
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