Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp1727720pxb; Sat, 16 Apr 2022 19:17:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwg7beGG7AU1vi0Q7o8oIVhv5ZkLyMUB2M6vWvA0SE4m8/MbgppaD2QrkCVVabPoXqAz0tH X-Received: by 2002:a17:907:7e85:b0:6e8:b41c:9d6b with SMTP id qb5-20020a1709077e8500b006e8b41c9d6bmr4334674ejc.274.1650161829633; Sat, 16 Apr 2022 19:17:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650161829; cv=none; d=google.com; s=arc-20160816; b=VB1WTXD2k8iPfSTNj4pQBQVu2CuyeRqWolbQWQ7J5eUqxAvub3PTzKp8dCj8Bv2kcp 1DxzDiRb7HEasCm9roIJrHfXGSM0ng3cMab3NKLyjP9yaiPCPTWcQ/PKwMaVlLjZ5DL0 dPX3UwGR3mGWoK/tgJJ3ETfEwsA1ZmksE7D1nLeTQ8yre2A+GSUrZn2qGijtFpmsmdgm Yrd24SFfvysGc/KEwu1oou8sJpsyV307uZ0vrFydLeIrKjMDQG6tucPHP7LRGzsvPzcy JAyqFycAdHk83969lQ1HUcvawJ4CjEnx/5Bj5FDuEQQ5UelMq3ZymhWiiIVQan46VUSa YL3Q== 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=Mj/kFhlgV3EkZOaHVu/Tn/AjDK7YDpUKKXQEa6NGlrg=; b=RzzNUS4aMtZ9St4i5rONxeo1NUrnnt17nfu8vtgiAedetzgCBK8uLqsj3ddfOxT5XA xX7O8gLxnIWrRU5HReOwiAEo58oV8s87tGHwy1LxVJ8kSfsiKeMLH5w52eKXNOsvmB9Q NKoNbFdQiQkqNTEvtiie8Tdi+D5V4sj7v3gm+bvcWYOASNi8P8X0GZqX025GIJpig8At 4udmdk14ZpOuS8mvBXZ9mAvxSHVybngrWJ+umhKAUjPpyFgSQXmC4ULCvcc/E6bEnBQ0 mtwZrRV/VZfhlfcVHIVEGHHP5bWGCWSm1jndDaEclFRm9STuxQMT5dkFs9kVSDxuCmz/ gdzA== 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 z19-20020a056402275300b004237fe86b4esi2603022edd.572.2022.04.16.19.16.43; Sat, 16 Apr 2022 19:17:09 -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 S231231AbiDPJWU (ORCPT + 99 others); Sat, 16 Apr 2022 05:22:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39420 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230500AbiDPJWB (ORCPT ); Sat, 16 Apr 2022 05:22:01 -0400 Received: from szxga08-in.huawei.com (szxga08-in.huawei.com [45.249.212.255]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2A1F749F2D; Sat, 16 Apr 2022 02:19:30 -0700 (PDT) Received: from kwepemi500014.china.huawei.com (unknown [172.30.72.56]) by szxga08-in.huawei.com (SkyGuard) with ESMTP id 4KgSLJ72yCz1HBtM; Sat, 16 Apr 2022 17:18:48 +0800 (CST) Received: from kwepemm600016.china.huawei.com (7.193.23.20) by kwepemi500014.china.huawei.com (7.221.188.232) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Sat, 16 Apr 2022 17:19:28 +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; Sat, 16 Apr 2022 17:19:28 +0800 From: Guangbin Huang To: , CC: , , , , Subject: [PATCH net-next 9/9] net: hns3: remove unnecessary line wrap for hns3_set_tunable Date: Sat, 16 Apr 2022 17:13:43 +0800 Message-ID: <20220416091343.35817-10-huangguangbin2@huawei.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20220416091343.35817-1-huangguangbin2@huawei.com> References: <20220416091343.35817-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: dggems701-chm.china.huawei.com (10.3.19.178) 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 51ee8adab6a3..1e641083bd60 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c +++ b/drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c @@ -1172,8 +1172,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; } @@ -1875,13 +1874,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