Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp171375ybd; Tue, 25 Jun 2019 19:04:31 -0700 (PDT) X-Google-Smtp-Source: APXvYqxXP4AKiBEdlSygWDdVZx5kANJ+fWVg82CNtCXlfoFSEIK3vbgnfZBjcebBNB6RhdGbGNBZ X-Received: by 2002:a63:c03:: with SMTP id b3mr205234pgl.68.1561514671550; Tue, 25 Jun 2019 19:04:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561514671; cv=none; d=google.com; s=arc-20160816; b=fZa/e8EGscsBi9YNfZfN/ejPVyg4IPXl1nN3pMC40vZHwRQKXYR8Yv7Imfy+yPZrG8 flq2/Vnr+JAjqS1d5svoL6V0bhOY0Wz7Gyxl2xwwyIRCNgPrWnasWyYTLgam20QW63GC xUFMMC41KLiHNpw0/Wk8TH8UGr9FTKD7sY1incEN9mZ5g6FF4YMuN+yQtsKYVfT1lx5P xG/X9lW3Iy4P+LK/9hM4RuTgMTaYXt18MXM6cYWg+GS5rybHKlTipejii+LHmRnvlp93 K6TOf8GhxDmpXermYY3NBrJf1Bkn2SQEl5nPX+jsD30cYEl/2NoQ/NBXt8DVDbrqPkAw baCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=0AsJ2s8DB3pIx+RuTZSbwALrgXmOUhsO65GzUrWFrK0=; b=OP+drFoOq/3SfDbI1BL/QhKfwHCn1zEuEVKiDQEXVgvuNYVQ2CN6JVaq1wb3Y3jRrv lMzzEiWraMC1eYcRR1nx9FgxnRW32WLWieLZ56laoo7uaw8FgXrQbpKf6XLii7o+M830 Kxh+bXDv94gCv5B0PrNDMjXGzZxRCgUOhz4iTP4JJjeNraoDa/oZ/FTk/Qod9mIkDOCB 5sZv6ITd6mYJq2vim1K9acP2hCzphd9ogdYGzn+eHs/PPo25OLncR8xGtPil3wis4KCM ypGGanV5anPO0CIIU+4pt+AVhXKdrOjXal65qgTIfjyUiaR5iaBIdvLozIfk/8MUka3u Z2uA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=sr8P26hc; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a64si1824794pla.432.2019.06.25.19.04.14; Tue, 25 Jun 2019 19:04:31 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=sr8P26hc; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726502AbfFZCDb (ORCPT + 99 others); Tue, 25 Jun 2019 22:03:31 -0400 Received: from mail.kernel.org ([198.145.29.99]:56314 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726179AbfFZCDb (ORCPT ); Tue, 25 Jun 2019 22:03:31 -0400 Received: from localhost (li1825-44.members.linode.com [172.104.248.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id EA084205C9; Wed, 26 Jun 2019 02:03:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1561514610; bh=62LoSwtXHpbnbCH3C/+D4GuQrQ/r6+lINTf9IHhDVnM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=sr8P26hcL0mrsOSIY0mf890uVjyghZvny3f090YK7szhXZlagCeOLKvIC7BI4g7jR QXaWTARPZX5eE28hPdMWtULJgLCVIt6DmZDEwQg/32U7uiUVJdfgrNVNFWxUk6jgWO /84SYo0QztGQ6Mqh98fQUdpCDzzi6PaYLNbw+lNA= Date: Wed, 26 Jun 2019 09:56:22 +0800 From: Greg KH To: Simon =?iso-8859-1?Q?Sandstr=F6m?= Cc: devel@driverdev.osuosl.org, gneukum1@gmail.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH 3/4] staging: kpc2000: remove unnecessary parentheses in kpc2000_spi.c Message-ID: <20190626015622.GC30966@kroah.com> References: <20190625084130.1107-1-simon@nikanor.nu> <20190625084130.1107-4-simon@nikanor.nu> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20190625084130.1107-4-simon@nikanor.nu> User-Agent: Mutt/1.12.1 (2019-06-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 25, 2019 at 10:41:29AM +0200, Simon Sandstr?m wrote: > Fixes checkpatch "CHECK: Unnecessary parentheses around '...'". > > Signed-off-by: Simon Sandstr?m > --- > drivers/staging/kpc2000/kpc2000_spi.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/staging/kpc2000/kpc2000_spi.c b/drivers/staging/kpc2000/kpc2000_spi.c > index 98484fbb9d2e..68b049f9ad69 100644 > --- a/drivers/staging/kpc2000/kpc2000_spi.c > +++ b/drivers/staging/kpc2000/kpc2000_spi.c > @@ -164,7 +164,7 @@ kp_spi_read_reg(struct kp_spi_controller_state *cs, int idx) > u64 val; > > addr += idx; > - if ((idx == KP_SPI_REG_CONFIG) && (cs->conf_cache >= 0)) { > + if (idx == KP_SPI_REG_CONFIG && cs->conf_cache >= 0) { Ick, no. I don't want to have to remember the priority order of operations. Leave this as-is, I HATE this checkpatch message. thanks, greg k-h