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:
4a36702
)
niu: Fix error checking in niu_ethflow_to_class.
author
Andreas Schwab
<schwab@suse.de>
Wed, 30 Jul 2008 06:59:20 +0000
(23:59 -0700)
committer
David S. Miller
<davem@davemloft.net>
Wed, 30 Jul 2008 06:59:20 +0000
(23:59 -0700)
The callers of niu_ethflow_to_class expect zero as error, but it returns
-1 instead.
Signed-off-by: Andreas Schwab <schwab@suse.de>
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 8ee7d7bb951b2106fa58aada1b7d89530bb79d05..e4765b713abab5afae02980bf6af52d8da8cb8b0 100644
(file)
--- a/
drivers/net/niu.c
+++ b/
drivers/net/niu.c
@@
-6417,7
+6417,7
@@
static int niu_ethflow_to_class(int flow_type, u64 *class)
*class = CLASS_CODE_SCTP_IPV6;
break;
default:
- return
-1
;
+ return
0
;
}
return 1;