Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2094698pxj; Wed, 19 May 2021 23:22:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJytLgkPuPSiaaJpsQ9T3wLAhkau989Lzza8DWpi9v7cmxUDrXWq+vTMezXY7R/ossKPOYRL X-Received: by 2002:a17:907:82a6:: with SMTP id mr38mr3021845ejc.540.1621491776322; Wed, 19 May 2021 23:22:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621491776; cv=none; d=google.com; s=arc-20160816; b=Kb0mImD+1ZMpV9EYHEM9Q9j72CUsqtmhKiC7jZmUO92PguXDOdXxMqg4yh2o6b2eFK U+5De2KH3yC3khNWfat2ClY3h4F9p9qPYTB+V+Qh11aFRpf0gagN7UXRh/9ZJ0y51vaD VgFlH8N8UpMJi03w8U0c7FMvW2h8yaZb/udMKMYMVLuznmSl15qXDw2qCb6r2YEv3wME alYAkUqVE4CmATiMTkDRcyAZTyDIicGfrMyjNvHdz/VMs5pbb0HV7QQV98oyHQdY8IOe pNHpF5v8nGSgQbvW6vw/VbxvYWacwhGfEu3hFVUwVpQ0i5uhnsoVm81AfPt1QzW1wCEh Yp2A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from; bh=kyafnVfE65kS4v9BKvu1R8go5nVh0Zlsehp7CBXDCGg=; b=Wl3gLc4MYQCyUS9sHCFEfoUzV/CjDmHKqIDynVW+sOa+qsPI1gJmMbBCdg2JTSLW9M dYCYsIwlukjWNTWJsMGFk27lXwAoksL1sDivixMmjI2MYoNWiFck6IZDZO1s7v+RVL9t q5k7i92Eiv7I7Imh908qDawDzD0iy9EXBlB8wNPWartc9t7CamknFg9QCn5lIq+Xz3qB FNlSytQugfYo9eRmRQgWNTj9FpMPxD1hXMnNvQupmuqhL+ITtXNGZqmKvNa6Ag0/B7xo eKMLSzfrtjGbTdKVJoBJDutWR8dm7wlTbKrfjtrYsntK7ot7jFPmZSn+Jb0r9Ltzp9G3 hA4g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id oy6si1777884ejb.391.2021.05.19.23.22.32; Wed, 19 May 2021 23:22:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230403AbhETGW4 (ORCPT + 99 others); Thu, 20 May 2021 02:22:56 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:3618 "EHLO szxga06-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230359AbhETGW4 (ORCPT ); Thu, 20 May 2021 02:22:56 -0400 Received: from dggems701-chm.china.huawei.com (unknown [172.30.72.58]) by szxga06-in.huawei.com (SkyGuard) with ESMTP id 4Fm01w6jKyzmWwT; Thu, 20 May 2021 14:19:16 +0800 (CST) Received: from dggemi759-chm.china.huawei.com (10.1.198.145) by dggems701-chm.china.huawei.com (10.3.19.178) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.2176.2; Thu, 20 May 2021 14:21:33 +0800 Received: from localhost.localdomain (10.67.165.24) by dggemi759-chm.china.huawei.com (10.1.198.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2; Thu, 20 May 2021 14:21:33 +0800 From: Guangbin Huang To: , , , , CC: , , , , Subject: [PATCH net-next 3/4] net: bonding: remove unnecessary braces Date: Thu, 20 May 2021 14:18:34 +0800 Message-ID: <1621491515-53459-4-git-send-email-huangguangbin2@huawei.com> X-Mailer: git-send-email 2.8.1 In-Reply-To: <1621491515-53459-1-git-send-email-huangguangbin2@huawei.com> References: <1621491515-53459-1-git-send-email-huangguangbin2@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.67.165.24] X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) To dggemi759-chm.china.huawei.com (10.1.198.145) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Yufeng Mo Braces {} are not necessary for single statement blocks, so remove these braces {}. Signed-off-by: Yufeng Mo Signed-off-by: Guangbin Huang --- drivers/net/bonding/bond_debugfs.c | 3 +-- drivers/net/bonding/bond_main.c | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/net/bonding/bond_debugfs.c b/drivers/net/bonding/bond_debugfs.c index f3f86ef68ae0..4f9b4a18c74c 100644 --- a/drivers/net/bonding/bond_debugfs.c +++ b/drivers/net/bonding/bond_debugfs.c @@ -88,9 +88,8 @@ void bond_create_debugfs(void) { bonding_debug_root = debugfs_create_dir("bonding", NULL); - if (!bonding_debug_root) { + if (!bonding_debug_root) pr_warn("Warning: Cannot create bonding directory in debugfs\n"); - } } void bond_destroy_debugfs(void) diff --git a/drivers/net/bonding/bond_main.c b/drivers/net/bonding/bond_main.c index e786a9c42bfd..dafeaef3cbd3 100644 --- a/drivers/net/bonding/bond_main.c +++ b/drivers/net/bonding/bond_main.c @@ -1013,9 +1013,8 @@ void bond_change_active_slave(struct bonding *bond, struct slave *new_active) if (bond_is_lb(bond)) bond_alb_handle_link_change(bond, new_active, BOND_LINK_UP); } else { - if (bond_uses_primary(bond)) { + if (bond_uses_primary(bond)) slave_info(bond->dev, new_active->dev, "making interface the new active one\n"); - } } } -- 2.8.1