From: Andreas Schwab Date: Wed, 30 Jul 2008 06:59:20 +0000 (-0700) Subject: niu: Fix error checking in niu_ethflow_to_class. X-Git-Tag: v2.6.27-rc2~119^2~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=38c080ffa9c1b840390832b42ce8621464ab9f97;p=platform%2Fkernel%2Flinux-3.10.git 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 Signed-off-by: David S. Miller --- 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 @@ static int niu_ethflow_to_class(int flow_type, u64 *class) *class = CLASS_CODE_SCTP_IPV6; break; default: - return -1; + return 0; } return 1;