[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <1342827272.5434.71.camel@lorien2>
Date: Fri, 20 Jul 2012 17:34:32 -0600
From: Shuah Khan <shuah.khan@...com>
To: davem@...emloft.net, mcarlson@...adcom.com,
bhutchings@...arflare.com, eric.dumazet@...il.com,
mchan@...adcom.com
Cc: netdev@...r.kernel.org, LKML <linux-kernel@...r.kernel.org>,
shuahkhan@...il.com
Subject: [PATCH RFT] net: Change niu_rbr_fill() to use unlikely() to check
niu_rbr_add_page() return value
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@...com>
---
drivers/net/ethernet/sun/niu.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/sun/niu.c b/drivers/net/ethernet/sun/niu.c
index 60d5c03..c2a0fe3 100644
--- a/drivers/net/ethernet/sun/niu.c
+++ b/drivers/net/ethernet/sun/niu.c
@@ -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;
--
1.7.9.5
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists