]> 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)
commit1e5be9cda78040acf44a5776760c41b92302c572
tree572d7c610abcd9b48aab5857bfda25c763dee681
parente9cdc61f0e62cf86aedca34a66ae5a42738b0c00
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: 327a841d1dd9 ("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