]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5417a09a924b1ed2645c5d09e07ee6de5f519962
tree572d7c610abcd9b48aab5857bfda25c763dee681
parent21a17490f3cda7eb2283f725b3c3095d0ee5f548
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: 6e2406330b28 ("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