net: hns3: Fixes the static check warning due to missing unsupp L3 proto check
authorSalil <salil.mehta@huawei.com>
Fri, 18 Aug 2017 11:31:39 +0000 (12:31 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 18 Aug 2017 17:31:56 +0000 (10:31 -0700)
commit1898d4e404a5f0095071fa3ae178a1d066360fbb
tree572d7c610abcd9b48aab5857bfda25c763dee681
parent9db85f33c0d724ce9251ad80dff49aa7bdbd95af
net: hns3: Fixes the static check warning due to missing unsupp L3 proto check

This patch fixes the static check warning due to missing handling leg of
unsupported L3 protocol type in the hns3_get_l4_protocol() function.

Fixes: 76ad4f0ee747 ("net: hns3: Add support of HNS3 Ethernet Driver for
hip08 SoC")
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Salil Mehta <salil.mehta@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hns3_enet.c