niu: Change niu_rbr_fill() to use unlikely() to check niu_rbr_add_page() return value
authorShuah Khan <shuah.khan@hp.com>
Fri, 20 Jul 2012 13:34:32 +0000 (13:34 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 23 Jul 2012 06:31:07 +0000 (23:31 -0700)
Change niu_rbr_fill() to use unlikely() to check niu_rbr_add_page() return
value to be consistent with the rest of the checks after niu_rbr_add_page()
calls in this file.

Signed-off-by: Shuah Khan <shuah.khan@hp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/sun/niu.c

index 60d5c035d946f07f9897a0b20f020c3486c50edd..c2a0fe393267ca065a41576a443f147b898add51 100644 (file)
@@ -3517,7 +3517,7 @@ static int niu_rbr_fill(struct niu *np, struct rx_ring_info *rp, gfp_t mask)
        err = 0;
        while (index < (rp->rbr_table_size - blocks_per_page)) {
                err = niu_rbr_add_page(np, rp, mask, index);
-               if (err)
+               if (unlikely(err))
                        break;
 
                index += blocks_per_page;