Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1010926pxj; Thu, 27 May 2021 17:50:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx/jfCr5Hdj9uDIlHJdmEZ+sxwA0oh9rrd25Vk7l/Bkxm8xYiAHSkvrqVwVeaQu1uvIF3MA X-Received: by 2002:a05:6638:155:: with SMTP id y21mr6065451jao.62.1622163024802; Thu, 27 May 2021 17:50:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622163024; cv=none; d=google.com; s=arc-20160816; b=bPOdvDTYRVlCqPydpg/H158vHU+Z4dMwkPWCd3lIVu9m87qyyDRfbO1eK2mfpdTZ16 jop3rz1FIztZta3h8BweOyup/VlKVCwsUOy36cA2fu1cG9mwno4aXGF4TDxp9hP+6ZWc PlhTdHHHMfOzGbcr707nJ+806IaHZA5s6qurRLrVysZHbY6PCC2tqN9BDvIQhvYCNbU5 eJwwU8wr+Oi+0T/trUQNvekysfqrOjGTp6ox3kve0rQTGaO4lokDOkeH4j1F5L78E1SM l93ITHm7wcexT8MC9B6rwQ6B/pt2Ch97WihArsQ/izWSEvgmcg1bJ1xz4M26ga8/g9kU MK9Q== 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=drOLF8gOnhIvOlXLw0wafjoDd4XJjmxvdbj5+9NaPK0=; b=DCjqfKptLoZ+bgYnaZ+sutaGgk2eJhx7o5onyfX9F7EDBErZu2x9rxg65l9MDCSw20 d17rElyVPhlVojb4okYL6n/jXNqzsmW5Sbb4/+mQJE3xi07YYuzuxpXN7zZGDv5whrww h7AfA+tav1uMlFyxdIVK8V0gGheErKvNH8U38GvOCdFC9B9+B9WS/yyWF1s6/yMVO9EE O8YD3rIHwdcEE9OKrmbu+3uIhVj63wPiVUr98D6k30nktCXZd3JmAQ+e37MAScXyNVVJ DXyM1djynHwliVU3/YnNPqGTCCk3yi+GxyoQHbqVGXtH5q7vZZwrm31esg86VMEPR6us gYgQ== 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 o10si4122269ilf.52.2021.05.27.17.50.11; Thu, 27 May 2021 17:50:24 -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 S235479AbhE1ASF (ORCPT + 99 others); Thu, 27 May 2021 20:18:05 -0400 Received: from szxga02-in.huawei.com ([45.249.212.188]:2441 "EHLO szxga02-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234639AbhE1ARa (ORCPT ); Thu, 27 May 2021 20:17:30 -0400 Received: from dggeml755-chm.china.huawei.com (unknown [172.30.72.53]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4FrlWd6fBSz6745; Fri, 28 May 2021 08:13:01 +0800 (CST) Received: from dggemi759-chm.china.huawei.com (10.1.198.145) by dggeml755-chm.china.huawei.com (10.1.199.136) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2; Fri, 28 May 2021 08:15:55 +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; Fri, 28 May 2021 08:15:54 +0800 From: Guangbin Huang To: , , , , CC: , , , , Subject: [PATCH V2 net-next 09/10] net: hdlc_fr: remove redundant braces {} Date: Fri, 28 May 2021 08:12:48 +0800 Message-ID: <1622160769-6678-10-git-send-email-huangguangbin2@huawei.com> X-Mailer: git-send-email 2.8.1 In-Reply-To: <1622160769-6678-1-git-send-email-huangguangbin2@huawei.com> References: <1622160769-6678-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: Peng Li This patch removes redundant braces {}, to fix the checkpatch.pl warning: "braces {} are not necessary for any arm of this statement" Signed-off-by: Peng Li Signed-off-by: Guangbin Huang --- drivers/net/wan/hdlc_fr.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/wan/hdlc_fr.c b/drivers/net/wan/hdlc_fr.c index 5c2a2ec..de7fbdc 100644 --- a/drivers/net/wan/hdlc_fr.c +++ b/drivers/net/wan/hdlc_fr.c @@ -480,11 +480,11 @@ static void fr_lmi_send(struct net_device *dev, int fullrep) } memset(skb->data, 0, len); skb_reserve(skb, 4); - if (lmi == LMI_CISCO) { + if (lmi == LMI_CISCO) fr_hard_header(skb, LMI_CISCO_DLCI); - } else { + else fr_hard_header(skb, LMI_CCITT_ANSI_DLCI); - } + data = skb_tail_pointer(skb); data[i++] = LMI_CALLREF; data[i++] = dce ? LMI_STATUS : LMI_STATUS_ENQUIRY; -- 2.8.1