From: David S. Miller Date: Wed, 8 Apr 2009 22:52:16 +0000 (-0700) Subject: niu: Fix unused variable warning. X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=efb6c736da8f9c455c22bcbf717dbcf1889d0325;p=openwrt%2Fstaging%2Fblogic.git niu: Fix unused variable warning. Don't strain gcc's tiny mind. Signed-off-by: David S. Miller --- diff --git a/drivers/net/niu.c b/drivers/net/niu.c index 2cd6109b8586..2b1745328cf7 100644 --- a/drivers/net/niu.c +++ b/drivers/net/niu.c @@ -4834,6 +4834,7 @@ static int niu_compute_rbr_cfig_b(struct rx_ring_info *rp, u64 *ret) { u64 val = 0; + *ret = 0; switch (rp->rbr_block_size) { case 4 * 1024: val |= (RBR_BLKSIZE_4K << RBR_CFIG_B_BLKSIZE_SHIFT);