Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp292474pxj; Thu, 10 Jun 2021 00:25:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxYpJRIrYnEuMEft7lXSEqAArW37xAXibfr/cGRDzDKKLauQpsL3W+MIULwAte+sDZgFxx8 X-Received: by 2002:a17:906:488a:: with SMTP id v10mr3121717ejq.383.1623309936997; Thu, 10 Jun 2021 00:25:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623309936; cv=none; d=google.com; s=arc-20160816; b=AbQfhMgvcxxvGPNsP1rSy4MVRgrh1++BdURA3Ms0W9sWbkRNrOrSsLm7S+6Bm/ID19 yQnaKeacRDQIF07t0O4+gHJMKB2YH0F2Xu99NaJmT+sQh0KULOUZcVgC3uSJGTJyEB3u Gvpw2g6N76IHJlmrfVBdroHyLAXhEGhWwF9L+XH1eyhrmM8Wdw/zSniTxdUIGQJLqaSo UB4pH1MqBfKveWS6reSuLlwN5FLDq2H9bodCeMXNkFLcrXrQL4N8KVpNWvS8/ALFpGDf KMDBsQ9l6e+vd8P5G89+/NGfS/1sR+RE4wHRM0hstWYW65cHVO3ZoBUFJMustm5kMHMp 0eDg== 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=JzP/6RzAXiCE9/vummdZUC6Az3FQy7ijvgDdobCvleo=; b=JcyfkFbBe1M4sVktL5Kh59vELdDqjmyFD53ELZMw5Y45l8PkFM8YHIcUwwiaMtpDI8 QoqRv7ixFWpgbL7oiyh1aW9eah2JkaX3rZxGmk+yh1sxk1d6Xdp1UWezpEkMIKHESn1U HCQUgs39JECP8U0S/RacsV+Ps9as57pxS0gqZrtcRqRn8voIFr5MU7rop1GohWOiaoEp 6NllCKFtDQq4lUu46phnbHMs2iOgobgNU6dgow4p6fx5S0jmLONuRi8Xk294YNbU4I0g GhJPes6hBQ7r3t0mmFi1Um2qofmMGudBJEncHk0ME6QdhXV7vUwX8BQ9P4KRr0YTt2OQ Jq6w== 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 m11si1593269edq.265.2021.06.10.00.25.14; Thu, 10 Jun 2021 00:25:36 -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 S230350AbhFJHZ3 (ORCPT + 99 others); Thu, 10 Jun 2021 03:25:29 -0400 Received: from szxga01-in.huawei.com ([45.249.212.187]:3822 "EHLO szxga01-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230196AbhFJHZM (ORCPT ); Thu, 10 Jun 2021 03:25:12 -0400 Received: from dggemv704-chm.china.huawei.com (unknown [172.30.72.53]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4G0wLQ2kGtzWtmN; Thu, 10 Jun 2021 15:18:22 +0800 (CST) Received: from dggemi759-chm.china.huawei.com (10.1.198.145) by dggemv704-chm.china.huawei.com (10.3.19.47) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.2176.2; Thu, 10 Jun 2021 15:23:15 +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, 10 Jun 2021 15:23:15 +0800 From: Guangbin Huang To: , , , , CC: , , , Subject: [PATCH net-next 8/8] net: ixp4xx_hss: add braces {} to all arms of the statement Date: Thu, 10 Jun 2021 15:20:05 +0800 Message-ID: <1623309605-15671-9-git-send-email-huangguangbin2@huawei.com> X-Mailer: git-send-email 2.8.1 In-Reply-To: <1623309605-15671-1-git-send-email-huangguangbin2@huawei.com> References: <1623309605-15671-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 Braces {} should be used on all arms of this statement. Signed-off-by: Peng Li --- drivers/net/wan/ixp4xx_hss.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/wan/ixp4xx_hss.c b/drivers/net/wan/ixp4xx_hss.c index 319ae50..e975211 100644 --- a/drivers/net/wan/ixp4xx_hss.c +++ b/drivers/net/wan/ixp4xx_hss.c @@ -1299,11 +1299,11 @@ static int hss_hdlc_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) return -EINVAL; port->clock_type = clk; /* Update settings */ - if (clk == CLOCK_INT) + if (clk == CLOCK_INT) { find_best_clock(port->plat->timer_freq, new_line.clock_rate, &port->clock_rate, &port->clock_reg); - else { + } else { port->clock_rate = 0; port->clock_reg = CLK42X_SPEED_2048KHZ; } -- 2.8.1