]> git.baikalelectronics.ru Git - kernel.git/commit
IPoIB: Get rid of useless test of queue length
authorRoland Dreier <rolandd@cisco.com>
Mon, 20 Mar 2006 18:08:26 +0000 (10:08 -0800)
committerRoland Dreier <rolandd@cisco.com>
Mon, 20 Mar 2006 18:08:26 +0000 (10:08 -0800)
commite36ce98867a67606bbb7074b26a77d548fd884a3
tree4d0021bcdd8e27891f2e1e1caa2b0c97f7c91d1d
parent05989cc45f1b02d081d2897ffe6ce6001c01ded7
IPoIB: Get rid of useless test of queue length

In neigh_add_path(), the queue of delayed packets can never be full,
because the queue is always freshly created and cannot be found by any
other code path.  In fact, the test of the queue length is worse than
useless: if somehow the test ever triggered and path_rec_start() also
failed, then dev_kfree_skb_any() will be called twice on the same skb.
Fix this by deleting the useless test.  Pointed out by Michael
S. Tsirkin <mst@mellanox.co.il>.

Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/ulp/ipoib/ipoib_main.c