提交 38c080ff 编写于 作者: A Andreas Schwab 提交者: David S. Miller

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: NAndreas Schwab <schwab@suse.de>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 4a36702e
...@@ -6417,7 +6417,7 @@ static int niu_ethflow_to_class(int flow_type, u64 *class) ...@@ -6417,7 +6417,7 @@ static int niu_ethflow_to_class(int flow_type, u64 *class)
*class = CLASS_CODE_SCTP_IPV6; *class = CLASS_CODE_SCTP_IPV6;
break; break;
default: default:
return -1; return 0;
} }
return 1; return 1;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册