Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp5434105pxj; Wed, 26 May 2021 10:22:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxRFeEf2RMwCq9VtT7aa3VcWSBx3+NOCUQkfuD3XYqO8SW86KA2Zgrp3hK38brss9WQrDLf X-Received: by 2002:a92:c5cf:: with SMTP id s15mr2803241ilt.88.1622049776238; Wed, 26 May 2021 10:22:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622049776; cv=none; d=google.com; s=arc-20160816; b=OXWkoTdd+QEFz5aBMA49KuAts5JsXoNQbGjpG+xkmTZlTFdLkZthQzGHMMyGZ1s4RE KKn1LtXqR7nUgq13VSczPwUODwzIF0FFuMfb22mKwuhEeDOubiYqBZ/FzD34gXqkVq1W 0UCm8c3TtBbxQ9aMsMkK8pobPiNlkihjosvbQCUWkpKlFa5Ve32YjVAn1agLD8V8LAeW eSqJP0SN2yjPY6YR2U2VHP9rBnm+gTwmcBp9q/KRzB9qlOLZ8CPn77s++HDWQ5fRm3bR T8ldKN2UgIroQQaO4532R0E2yeGseF4WZw65dZ1Mf5+qeNSP6pjWQG+K5URR/DcClFkO VYTg== 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=vsOjZvjf7FopKZYvrorvDaodnyk0Dd3kPwvuOG0gyqY=; b=l6J4CW5sd5kjwoYG/N4ABf3ByUMRJ0lvtcMp43mmsyWn7+VgLjX8qIiUE4e75x/Ioe ZfcAuXOOTXWaqkBLm96aGYxNtR3zX8/2xGzj5Z7+9zKfAw6hszLIkGqcKM4nYW/NvRKg PHzk2nwstTCQdxNOACbvhK/MmJ2Lkn6MtZdEv2BQCzhNNvxWvDLnpezVROjQIV8U6Kzk QE+Dyhm+Jc3mHdHSZZQJEBHsuBWio9TJwX3OFhUKmdvR9A2wY+dGUbKLNIkTdGCOAWcn FORIwBTeyKDBfmfLe6WsSvhtn3zfU2vCKtvfVLJtn0QM0me1ZbEJ/q8ev2tv9JFPjVFP NP5Q== 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 u10si21307175jad.109.2021.05.26.10.22.32; Wed, 26 May 2021 10: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 S234589AbhEZLuh (ORCPT + 99 others); Wed, 26 May 2021 07:50:37 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:6641 "EHLO szxga04-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232245AbhEZLta (ORCPT ); Wed, 26 May 2021 07:49:30 -0400 Received: from dggems705-chm.china.huawei.com (unknown [172.30.72.59]) by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4Fqpz53tWHz1CDlQ; Wed, 26 May 2021 19:45:05 +0800 (CST) Received: from dggemi759-chm.china.huawei.com (10.1.198.145) by dggems705-chm.china.huawei.com (10.3.19.182) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.2176.2; Wed, 26 May 2021 19:47:57 +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; Wed, 26 May 2021 19:47:57 +0800 From: Guangbin Huang To: , , , , CC: , , , , Subject: [PATCH net-next 09/10] net: wan: remove redundant braces {} Date: Wed, 26 May 2021 19:44:54 +0800 Message-ID: <1622029495-30357-10-git-send-email-huangguangbin2@huawei.com> X-Mailer: git-send-email 2.8.1 In-Reply-To: <1622029495-30357-1-git-send-email-huangguangbin2@huawei.com> References: <1622029495-30357-1-git-send-email-huangguangbin2@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.67.165.24] X-ClientProxiedBy: dggems701-chm.china.huawei.com (10.3.19.178) 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 5c2a2ec6de5f..de7fbdc77588 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