Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9b70749e authored by Shuah Khan's avatar Shuah Khan Committed by David S. Miller
Browse files

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: default avatarShuah Khan <shuah.khan@hp.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent ec2deec1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;