Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp1091064imm; Thu, 31 May 2018 15:16:07 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKbkBIMG+tFbOhqkYn5JCL2pj7txPeYlFGLoJCTct0POdTXPgjr4w4cIPhsJatcBMHhMxa9 X-Received: by 2002:a62:c45a:: with SMTP id y87-v6mr8488750pff.190.1527804967209; Thu, 31 May 2018 15:16:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527804967; cv=none; d=google.com; s=arc-20160816; b=xjt9PR1SO30XYRxvqS0Unz8octMrzkVCTcAewuWHON2E88nfJ6H9mGvWwd/pB3ji31 bN+jt3aAo9+ReGj8QGK0MTu/O7xfh4frHTFozKbZhfgdZNgymdgOIowwjRgIP2vssT1u 06YelOmH3ogm2tJXxSHKmrfbhX5rXScRLIKXskhac7XyhUDhxwFTI2d5jieuzWD4M16+ N3gXmgb8wCXPW/jK1KQ1f/sQxY3KmXMsJYVHZnoY9fFBn50tKjED5G6AHeOKi6a/ojMx 4kiJ4qE3mYFLtnGxfln2mMM+mfG4KSB5kQasY+tvAbuqksYCxJQ2vOhqBkkQqELGkPvz bu3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :arc-authentication-results; bh=jsHhRRxPLoAbhYaDCT1x/UF27FzUCVaHOpoCpMonwFo=; b=zCtJKVcb6qN9QrhauCaQ8C8RkbkMOp4EI4mal0ZZmMHD4Y4Dk3SAcp8BAexa2UojGD dt9l4CrS1KTByKoLZjI2b+nFH4dBIhrYS9WtIMv9AkG+fCLbv5uh6OpABCi+tus3ZA7G PDCmubb2RLoUq0M7ikwbktb0P0FT6q7Wc/6g+PB1nSY8Y/omdYpdbKj1G6l6CLE765xD uRsD8uDF59gzNcO8WQdIAItJxJXuHcnNs7TA3h99xdiKtzx5xq6FveQz92RX6IlufvWp 8wewd23FYedkXH/6dpXRdMZWLnSTsjSI3UxUk3Fks/bKh3OQecEJD8GCX9zmyTyXxX0r 3wjg== ARC-Authentication-Results: i=1; mx.google.com; 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 r72-v6si8369649pfb.65.2018.05.31.15.15.50; Thu, 31 May 2018 15:16:07 -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; 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 S1750758AbeEaWOt (ORCPT + 99 others); Thu, 31 May 2018 18:14:49 -0400 Received: from smtprelay0203.hostedemail.com ([216.40.44.203]:36429 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750711AbeEaWOr (ORCPT ); Thu, 31 May 2018 18:14:47 -0400 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay04.hostedemail.com (Postfix) with ESMTP id 9E286180A8859; Thu, 31 May 2018 22:14:46 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::,RULES_HIT:41:355:379:541:599:960:973:988:989:1260:1277:1311:1313:1314:1345:1359:1437:1515:1516:1518:1534:1539:1593:1594:1711:1730:1747:1777:1792:2393:2559:2562:2828:2914:3138:3139:3140:3141:3142:3352:3622:3867:3868:3872:4321:5007:7901:10004:10400:10848:11026:11473:11658:11914:12043:12296:12438:12740:12760:12895:13069:13255:13311:13357:13439:14659:14721:21080:21627:30046:30054:30091,0,RBL:47.151.150.235:@perches.com:.lbl8.mailshell.net-62.8.0.100 64.201.201.201,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:neutral,Custom_rules:0:0:0,LFtime:37,LUA_SUMMARY:none X-HE-Tag: nest32_80de51d23775a X-Filterd-Recvd-Size: 1645 Received: from XPS-9350.home (unknown [47.151.150.235]) (Authenticated sender: joe@perches.com) by omf03.hostedemail.com (Postfix) with ESMTPA; Thu, 31 May 2018 22:14:45 +0000 (UTC) Message-ID: Subject: Re: [PATCH] staging: mt7621-spi: Fix Coding style issues reported by checkpatch.pl. From: Joe Perches To: Sankalp Negi , Greg Kroah-Hartman Cc: devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, NeilBrown Date: Thu, 31 May 2018 15:14:43 -0700 In-Reply-To: <20180531185542.phhu2rkdoq2czkav@localhost> References: <20180531185542.phhu2rkdoq2czkav@localhost> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.28.1-2 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 2018-06-01 at 00:25 +0530, Sankalp Negi wrote: > diff --git a/drivers/staging/mt7621-spi/spi-mt7621.c b/drivers/staging/mt7621-spi/spi-mt7621.c [] > @@ -164,9 +165,8 @@ static inline int mt7621_spi_wait_till_ready(struct spi_device *spi) > u32 status; > > status = mt7621_spi_read(rs, MT7621_SPI_TRANS); > - if ((status & SPITRANS_BUSY) == 0) { > + if ((status & SPITRANS_BUSY) == 0) > return 0; > - } > cpu_relax(); > udelay(1); > } It might also be more readable to avoid a status temporary and use a direct compare instead: for (i = 0; i < RALINK_SPI_WAIT_MAX_LOOP; i++) { if (!(mt7621_spi_read(rs, MT7621_SPI_TRANS) & SPITRANS_BUSY)) return 0; cpu_relax(); udelay(1); } return -ETIMEDOUT; }