Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp3959177pxb; Tue, 19 Apr 2022 13:33:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzvvNFuz5f7KCqN0WvldU8Mf/Tl4w04Hu6pd0ThHLQjsMUhYyErfFWad/CiSIshJh5XTpsd X-Received: by 2002:a17:902:d50b:b0:158:fd26:1bac with SMTP id b11-20020a170902d50b00b00158fd261bacmr11215315plg.68.1650400413435; Tue, 19 Apr 2022 13:33:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650400413; cv=none; d=google.com; s=arc-20160816; b=Ko197xV+peZg0+exWj1zQIhwueZ1unK756Ym3TLjoH9h1nmFQVmoyQpcWwLUu4MqvS LjrYaLTo6fn9Knt7UM+MVKdiD/ETF/v5kmdoh9k1lYCzR29UUyvrqIlV69/pnKFl4LpB HCxgsg4GnAtywQ+mL6Kv5h/iguzDvEnjXiJCUZ0UblkKLyFb5VqV+uHanMpTFLhnF6X+ FOO8SG8ayjsNd+rZs6YGdRFJCwuVds7+1dqJaC4m5kRx3GUXxK/8HeLYnPx4jD+ea8Dp 8T5q4FbbFhWfUbPPG7IybPmg62veclKAPKnrWBtfndtQc4lkqQfTgzszTYu7vTC3wBLR CU8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=Di9Ad9EJe1MCYTsnjKM94pFn2ux39oS0PALIAIXLVVM=; b=X7/9FqusWEtTqGsuTF1+sz5MYBss6H01/3Wlx1YMlbMKO1ATUSpi9cKnBaeOJz2Zfu izjaVk2gRDq2xBuU/GjzrEDUCRpv1NF6lrFAJfkdCll3tFXdtRCI4xjPpcd20hkvFdad 1nKAKUFAJ992M9DyZX8E3EFrxH6//iGWcJCtekrMJ+KlwbGe0oOeukA8or/lDvajx478 exrIicxM2rD2i99/71LaPlilRpsAiDD7UpPvo/Klfd1MnE3iOZWEs7WDqEDr0Diazd3h tqwoYSwLJKmeqdQI0lpNTLbazwRWtzf9+YKQnv6tkG+OHtSQgOxkbXT0O4M1sqTxQS3u KLHQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bv4-20020a056a00414400b004fe215ae62bsi155772pfb.67.2022.04.19.13.33.15; Tue, 19 Apr 2022 13:33:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348103AbiDSDgZ (ORCPT + 99 others); Mon, 18 Apr 2022 23:36:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33636 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347776AbiDSDfl (ORCPT ); Mon, 18 Apr 2022 23:35:41 -0400 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 552632BB2E; Mon, 18 Apr 2022 20:32:57 -0700 (PDT) Received: from kwepemi500003.china.huawei.com (unknown [172.30.72.54]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4Kj8Wk5xsGzdZlJ; Tue, 19 Apr 2022 11:32:50 +0800 (CST) Received: from kwepemm600016.china.huawei.com (7.193.23.20) by kwepemi500003.china.huawei.com (7.221.188.51) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Tue, 19 Apr 2022 11:32:55 +0800 Received: from localhost.localdomain (10.67.165.24) by kwepemm600016.china.huawei.com (7.193.23.20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Tue, 19 Apr 2022 11:32:55 +0800 From: Guangbin Huang To: , CC: , , , , Subject: [PATCH V2 net-next 9/9] net: hns3: remove unnecessary line wrap for hns3_set_tunable Date: Tue, 19 Apr 2022 11:27:09 +0800 Message-ID: <20220419032709.15408-10-huangguangbin2@huawei.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20220419032709.15408-1-huangguangbin2@huawei.com> References: <20220419032709.15408-1-huangguangbin2@huawei.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.67.165.24] X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) To kwepemm600016.china.huawei.com (7.193.23.20) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Hao Chen Remove unnecessary line wrap for hns3_set_tunable to improve function readability. Signed-off-by: Hao Chen Signed-off-by: Guangbin Huang --- drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c b/drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c index 73498e125492..bb001f597857 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c +++ b/drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c @@ -1202,8 +1202,7 @@ static int hns3_set_ringparam(struct net_device *ndev, tmp_rings = hns3_backup_ringparam(priv); if (!tmp_rings) { - netdev_err(ndev, - "backup ring param failed by allocating memory fail\n"); + netdev_err(ndev, "backup ring param failed by allocating memory fail\n"); return -ENOMEM; } @@ -1905,13 +1904,11 @@ static int hns3_set_tunable(struct net_device *netdev, (!priv->ring->tx_spare && new_tx_spare_buf_size != 0)) { int ret1; - netdev_warn(netdev, - "change tx spare buf size fail, revert to old value\n"); + netdev_warn(netdev, "change tx spare buf size fail, revert to old value\n"); ret1 = hns3_set_tx_spare_buf_size(netdev, old_tx_spare_buf_size); if (ret1) { - netdev_err(netdev, - "revert to old tx spare buf size fail\n"); + netdev_err(netdev, "revert to old tx spare buf size fail\n"); return ret1; } -- 2.33.0