Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1272636pxb; Thu, 4 Mar 2021 07:30:54 -0800 (PST) X-Google-Smtp-Source: ABdhPJwsDnRkknIvknluA/V3NlR/QXkreQvadosnu5lf4mAUk1dWFZFZvgm8cARQJzsq+3L8n1pk X-Received: by 2002:a17:906:2344:: with SMTP id m4mr4726126eja.327.1614871853936; Thu, 04 Mar 2021 07:30:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614871853; cv=none; d=google.com; s=arc-20160816; b=H13XOLtXykMEPJK7XrKQ4oxFFenctY4UlawFBvci2kJg9YrbX+STjAq4C/TUi9RRbm As7HNEZwMnFhyU+yqDzy2yJhCiYNalGf4KWAxY3bWpu4RNNHz92PUc/FVhV3M4zt7/DR ZUI4EReAUbuQGppks8azdF/T4UOWfbHoLcGtbUo57iv/JmlfdrIYHA+D2dw79a3oBbm4 IFIzr4w11Ck1pYvizWxqo12d16fDecD7zg+F4iSVUItWvcDyAQh2aB0iV0IzdQNaEKte /dQTOTylV0u7ghr6TSgPaGWy0mnSFEeBD2j8fQl1v4kHfSRyIqZQ76Hrqdk59/R6HkpS yOjQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=tK43z2tZnWkS7naw/Q1sPvbQsPCvKB7XWG33Fyv7aak=; b=cOPgV7zP89D44Ceegcr1MEanMyn8a2F5BiQNeMalLYXeikMvIAVjcxHX+L5jfSSRbF MBVknVdyRRDtbAGs+ftOvXigRLgGZ26vAcIJR0okr1Q1JBi9q3Vb9D2SUMgStIBe7dsH oVMXH/l+QsdRhmTBBGU8DAwxLUOA2f4smc1exv3pl9JkJ8rRAh2ma2tyCW6izqW5zkjc SaUGHFpuNfiaT1zbaHMwIu5AnpqH6E2sHln1JsgYxtwvhuJozOGp9FuvkHtmObe3WzrZ 682vW7eFMz4i9WG0gwK5FGA8G1MIAYuVOdfIvN6eJVPV0LV6BVq2/EfOoEokxEwRE05K /0tg== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f16si3720680edy.392.2021.03.04.07.30.30; Thu, 04 Mar 2021 07:30:53 -0800 (PST) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234045AbhCDIUp (ORCPT + 99 others); Thu, 4 Mar 2021 03:20:45 -0500 Received: from lucky1.263xmail.com ([211.157.147.134]:51212 "EHLO lucky1.263xmail.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231874AbhCDIUd (ORCPT ); Thu, 4 Mar 2021 03:20:33 -0500 Received: from localhost (unknown [192.168.167.16]) by lucky1.263xmail.com (Postfix) with ESMTP id C39EEC769A; Thu, 4 Mar 2021 16:17:59 +0800 (CST) X-MAIL-GRAY: 0 X-MAIL-DELIVERY: 1 X-ADDR-CHECKED4: 1 X-ANTISPAM-LEVEL: 2 X-ABS-CHECKED: 0 Received: from localhost.localdomain (unknown [124.126.19.250]) by smtp.263.net (postfix) whith ESMTP id P32470T140679651546880S1614845876146115_; Thu, 04 Mar 2021 16:18:01 +0800 (CST) X-IP-DOMAINF: 1 X-UNIQUE-TAG: X-RL-SENDER: maqianga@uniontech.com X-SENDER: maqianga@uniontech.com X-LOGIN-NAME: maqianga@uniontech.com X-FST-TO: arnd@arndb.de X-SENDER-IP: 124.126.19.250 X-ATTACHMENT-NUM: 0 X-System-Flag: 0 From: Qiang Ma To: arnd@arndb.de, gregkh@linuxfoundation.org Cc: linux-kernel@vger.kernel.org, Qiang Ma Subject: [PATCH] char: lp: remove redundant space Date: Thu, 4 Mar 2021 16:17:52 +0800 Message-Id: <20210304081752.23986-1-maqianga@uniontech.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org These two lines of code don't meet the kernel coding style, so remove the redundant space. Signed-off-by: Qiang Ma --- drivers/char/lp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/char/lp.c b/drivers/char/lp.c index 862c2fd933c7..0e22e3b0a04e 100644 --- a/drivers/char/lp.c +++ b/drivers/char/lp.c @@ -546,7 +546,7 @@ static int lp_open(struct inode *inode, struct file *file) } /* Determine if the peripheral supports ECP mode */ lp_claim_parport_or_block(&lp_table[minor]); - if ( (lp_table[minor].dev->port->modes & PARPORT_MODE_ECP) && + if ((lp_table[minor].dev->port->modes & PARPORT_MODE_ECP) && !parport_negotiate(lp_table[minor].dev->port, IEEE1284_MODE_ECP)) { printk(KERN_INFO "lp%d: ECP mode\n", minor); @@ -590,7 +590,7 @@ static int lp_do_ioctl(unsigned int minor, unsigned int cmd, return -ENODEV; if ((LP_F(minor) & LP_EXIST) == 0) return -ENODEV; - switch ( cmd ) { + switch (cmd) { case LPTIME: if (arg > UINT_MAX / HZ) return -EINVAL; -- 2.20.1