net/niu: Fix compile warnings
PATCH 1/1 net/niu: Fix compile warnings
Fix the wrong return value from niu_ethflow_to_class().
drivers/net/niu.c: In function 'niu_get_hash_opts':
drivers/net/niu.c:6481: warning: 'class' may be used uninitialized in this function drivers/net/niu.c: In function 'niu_set_hash_opts':
drivers/net/niu.c:6501: warning: 'class' may be used uninitialized in this function
Signed-off-by Takashi Iwai <[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 ;