mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-12 16:19:53 +00:00
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>
This commit is contained in:
parent
4a36702e01
commit
38c080ffa9
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user