commit | 38c080ffa9c1b840390832b42ce8621464ab9f97 | [log] [tgz] |
---|---|---|
author | Andreas Schwab <schwab@suse.de> | Tue Jul 29 23:59:20 2008 -0700 |
committer | David S. Miller <davem@davemloft.net> | Tue Jul 29 23:59:20 2008 -0700 |
tree | 898e9263a2a1820f01a99e004833fabdf6bb91f3 | |
parent | 4a36702e016947a0ce6c0c024673bb5b16d3f618 [diff] [blame] |
niu: Fix error checking in niu_ethflow_to_class. 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>
diff --git a/drivers/net/niu.c b/drivers/net/niu.c index 8ee7d7b..e4765b7 100644 --- a/drivers/net/niu.c +++ b/drivers/net/niu.c
@@ -6417,7 +6417,7 @@ *class = CLASS_CODE_SCTP_IPV6; break; default: - return -1; + return 0; } return 1;