Skip to content

Commit efb6c73

Browse files
committed
niu: Fix unused variable warning.
Don't strain gcc's tiny mind. Signed-off-by: David S. Miller <[email protected]>
1 parent bc4de26 commit efb6c73

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/net/niu.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4834,6 +4834,7 @@ static int niu_compute_rbr_cfig_b(struct rx_ring_info *rp, u64 *ret)
48344834
{
48354835
u64 val = 0;
48364836

4837+
*ret = 0;
48374838
switch (rp->rbr_block_size) {
48384839
case 4 * 1024:
48394840
val |= (RBR_BLKSIZE_4K << RBR_CFIG_B_BLKSIZE_SHIFT);

0 commit comments

Comments
 (0)