projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ec2deec
)
niu: Change niu_rbr_fill() to use unlikely() to check niu_rbr_add_page() return value
author
Shuah Khan
<
[email protected]
>
Fri, 20 Jul 2012 13:34:32 +0000
(13:34 +0000)
committer
David S. Miller
<
[email protected]
>
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 <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
drivers/net/ethernet/sun/niu.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/sun/niu.c
b/drivers/net/ethernet/sun/niu.c
index 60d5c035d946f07f9897a0b20f020c3486c50edd..c2a0fe393267ca065a41576a443f147b898add51 100644
(file)
--- 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;