RDMA/cma: Optimize cma_bind_loopback() to check for empty list
authorKrishna Kumar <krkumar2@in.ibm.com>
Mon, 16 Oct 2006 04:39:01 +0000 (10:09 +0530)
committerRoland Dreier <rolandd@cisco.com>
Wed, 29 Nov 2006 23:33:04 +0000 (15:33 -0800)
commite82153b54d75af31d5d4a84efe441e5719f34cfc
treecf4fad6438d0d8affa229af1fd02a754bf88450a
parent0215ffb08ce99e2bb59eca114a99499a4d06e704
RDMA/cma: Optimize cma_bind_loopback() to check for empty list

Optimize to test for an empty list first.  This ends up simplifying
the code too.

Signed-off-by: Krishna Kumar <krkumar2@in.ibm.com>
Acked-by: Sean Hefty <sean.hefty@intel.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/core/cma.c