net: hns: remove redundant return int void function
authorPeng Li <lipeng321@huawei.com>
Fri, 14 May 2021 07:31:42 +0000 (15:31 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 14 May 2021 22:09:25 +0000 (15:09 -0700)
Void function return statements are not generally useful,
so remove the redundant return.

Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: Guangbin Huang <huangguangbin2@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns/hns_ae_adapt.c

index c615fbf..75e4ec5 100644 (file)
@@ -462,8 +462,6 @@ static void hns_ae_adjust_link(struct hnae_handle *handle, int speed,
        default:
                break;
        }
-
-       return;
 }
 
 static void hns_ae_get_ring_bdnum_limit(struct hnae_queue *queue,