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:
bc4de26
)
niu: Fix unused variable warning.
author
David S. Miller
<davem@davemloft.net>
Wed, 8 Apr 2009 22:52:16 +0000
(15:52 -0700)
committer
David S. Miller
<davem@davemloft.net>
Wed, 8 Apr 2009 22:52:16 +0000
(15:52 -0700)
Don't strain gcc's tiny mind.
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/niu.c
patch
|
blob
|
history
diff --git
a/drivers/net/niu.c
b/drivers/net/niu.c
index 2cd6109b8586f3b86e42bda00a7a46ffb1569904..2b1745328cf78a90aa20cd05d1fb1a74598544ff 100644
(file)
--- 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);