Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp221424pxj; Wed, 16 Jun 2021 00:30:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwAaHMEsue1P/MLcGC9pI7TqmWkjPE1WbAkHcVdlqXH1+3vgOuh+rbN/6iP0Yd+jIni784l X-Received: by 2002:a92:d4c6:: with SMTP id o6mr2604700ilm.196.1623828607078; Wed, 16 Jun 2021 00:30:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623828607; cv=none; d=google.com; s=arc-20160816; b=g44ChiJem0aXRXT3bKRxRD2uzPyQvgGpqWfffJMCeQzICF7Beb+sggSEYw/ppIRtGK b7KHZqHkixW+ZPFCK6oW6ozpfyXfaxYFyl7LgVqRUwfXm1vqWjUkBY3nNllvMSDxvgeX /wOz7JzUWoBfpMZZ2C9RhguQUUbq5sRIdmkbutNJ0JZZ3YDekB940lV++meKK0FvLkiQ w0dTfR74BSU/YGCz09VFsFKS1Luy7MKHjHdL+aLE7AGVW25M29WIm9JRM4ZeKo+rELYU MjJk3VDJGUsiY+OAYS0hMGlxkGz/c6TXkodguYhTmcI+Vdf3fOU82vm1sAdIkhwSx1Fe A/ow== 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=NsWQD9WmvHQ9vgAheTyPrpKcKdXRC5hAbYdmtCpfb6A=; b=dKZR8bgFLDnB0KubPDaJA9zOgVAKwNSJFwmQtD28MLPpIhuorzRN36SlQlsltyl1B0 YIh/OiN2zChQ1gqNl8veLPd7Nqsio1AreczhlCNuWBvx6Y10QytdTsnow+CCvh2L+rR7 9tjWTCHQvsRIlCeHGIXG42IR7JwSaNvHTZQN183R5S68xhlAbffRPEKjQJROW2T1GiuM I4M9HoIR8fKNkMPLZvjiGnO9g922505AaUHvLbIWWvCxp/PWzsx9XxCWnimyYvzL4M0f ot4MjRq2ox0KL4y4EGlwdy/2hdS2WnR+2ovIl+uHn1VcesQEAGcw5GhWfaHbZG5KIhLr myUQ== 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 r127si1456432iod.92.2021.06.16.00.29.55; Wed, 16 Jun 2021 00:30:07 -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 S231560AbhFPHat (ORCPT + 99 others); Wed, 16 Jun 2021 03:30:49 -0400 Received: from szxga08-in.huawei.com ([45.249.212.255]:7299 "EHLO szxga08-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231805AbhFPH3I (ORCPT ); Wed, 16 Jun 2021 03:29:08 -0400 Received: from dggemv703-chm.china.huawei.com (unknown [172.30.72.55]) by szxga08-in.huawei.com (SkyGuard) with ESMTP id 4G4c7r1lYbz1BN7h; Wed, 16 Jun 2021 15:22:00 +0800 (CST) Received: from dggemi759-chm.china.huawei.com (10.1.198.145) by dggemv703-chm.china.huawei.com (10.3.19.46) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.2176.2; Wed, 16 Jun 2021 15:26: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; Wed, 16 Jun 2021 15:26:55 +0800 From: Guangbin Huang To: , , , , CC: , , , Subject: [PATCH net-next 15/15] net: cosa: remove redundant spaces Date: Wed, 16 Jun 2021 15:23:41 +0800 Message-ID: <1623828221-48349-16-git-send-email-huangguangbin2@huawei.com> X-Mailer: git-send-email 2.8.1 In-Reply-To: <1623828221-48349-1-git-send-email-huangguangbin2@huawei.com> References: <1623828221-48349-1-git-send-email-huangguangbin2@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.67.165.24] X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) 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 According to the chackpatch.pl, no spaces is necessary at the start of a line, no space is necessary after a cast. Signed-off-by: Peng Li Signed-off-by: Guangbin Huang --- drivers/net/wan/cosa.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/net/wan/cosa.c b/drivers/net/wan/cosa.c index 79941b3..43caab0 100644 --- a/drivers/net/wan/cosa.c +++ b/drivers/net/wan/cosa.c @@ -976,7 +976,7 @@ static struct fasync_struct *fasync[256] = { NULL, }; /* To be done ... */ static int cosa_fasync(struct inode *inode, struct file *file, int on) { - int port = iminor(inode); + int port = iminor(inode); return fasync_helper(inode, file, on, &fasync[port]); } @@ -1338,7 +1338,7 @@ static void cosa_kick(struct cosa_data *cosa) udelay(100); cosa_putstatus(cosa, 0); udelay(100); - (void) cosa_getdata8(cosa); + (void)cosa_getdata8(cosa); udelay(100); cosa_putdata8(cosa, 0); udelay(100); @@ -1739,7 +1739,7 @@ static inline void tx_interrupt(struct cosa_data *cosa, int status) #ifdef DEBUG_IO debug_status_out(cosa, SR_TX_INT_ENA); debug_data_out(cosa, ((cosa->txchan << 5) & 0xe0) | - ((cosa->txsize >> 8) & 0x1f)); + ((cosa->txsize >> 8) & 0x1f)); debug_data_in(cosa, cosa_getdata8(cosa)); #else cosa_getdata8(cosa); @@ -1762,8 +1762,8 @@ static inline void tx_interrupt(struct cosa_data *cosa, int status) | (cosa->txsize & 0x1fff)); #ifdef DEBUG_IO debug_status_out(cosa, SR_TX_INT_ENA); - debug_data_out(cosa, ((cosa->txchan << 13) & 0xe000) - | (cosa->txsize & 0x1fff)); + debug_data_out(cosa, ((cosa->txchan << 13) & 0xe000) | + (cosa->txsize & 0x1fff)); debug_data_in(cosa, cosa_getdata8(cosa)); debug_status_out(cosa, 0); #else -- 2.8.1