]> git.baikalelectronics.ru Git - kernel.git/commitdiff
net: hns3: remove an unnecessary case 0 in hclge_fd_convert_tuple()
authorHuazhong Tan <tanhuazhong@huawei.com>
Mon, 20 Apr 2020 02:17:28 +0000 (10:17 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 20 Apr 2020 19:49:17 +0000 (12:49 -0700)
Since case default has included case 0, so removes this
redundant case 0.

Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c

index b1fe204c9e40c37173330648b4e90db86f4f998d..999f05686f06952f2cff862e302a751036d953eb 100644 (file)
@@ -5006,8 +5006,6 @@ static bool hclge_fd_convert_tuple(u32 tuple_bit, u8 *key_x, u8 *key_y,
                return true;
 
        switch (tuple_bit) {
-       case 0:
-               return false;
        case BIT(INNER_DST_MAC):
                for (i = 0; i < ETH_ALEN; i++) {
                        calc_x(key_x[ETH_ALEN - 1 - i], rule->tuples.dst_mac[i],