Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 38c080ff authored by Andreas Schwab's avatar Andreas Schwab Committed by David S. Miller
Browse files

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: default avatarAndreas Schwab <schwab@suse.de>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 4a36702e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;