niu: 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@hp.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
ec2deec1f3
commit
9b70749e64
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue