Fix error checking in niu driver
Subsystems (2)
The callers of niu_ethflow_to_class expect zero as error, but it returns -1 instead.
Signed-off-by Andreas Schwab <[email protected]>
---
drivers/net/niu.c +1 -1
@@ -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 ;
Signature · 4 lines
Andreas Schwab, SuSE Labs, [email protected] SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."
From: Andreas Schwab <[email protected]>
Date: Tue, 29 Jul 2008 20:58:14 +0200
Quoted 4 lines
The callers of
niu_ethflow_to_classexpect zero as error, but it returns -1 instead.Signed-off-by Andreas Schwab <[email protected]>
Applied, thanks Andreas.