X-GM-THRID: 6330756111319171072 X-Received: by 10.28.206.131 with SMTP id e125mr1089909wmg.5.1474004394814; Thu, 15 Sep 2016 22:39:54 -0700 (PDT) X-BeenThere: outreachy-kernel@googlegroups.com Received: by 10.28.94.205 with SMTP id s196ls582935wmb.24.canary; Thu, 15 Sep 2016 22:39:54 -0700 (PDT) X-Received: by 10.194.178.166 with SMTP id cz6mr2080904wjc.0.1474004394317; Thu, 15 Sep 2016 22:39:54 -0700 (PDT) Return-Path: Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr. [192.134.164.104]) by gmr-mx.google.com with ESMTPS id 82si442782wmg.3.2016.09.15.22.39.54 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 15 Sep 2016 22:39:54 -0700 (PDT) Received-SPF: neutral (google.com: 192.134.164.104 is neither permitted nor denied by domain of julia.lawall@lip6.fr) client-ip=192.134.164.104; Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 192.134.164.104 is neither permitted nor denied by domain of julia.lawall@lip6.fr) smtp.mailfrom=julia.lawall@lip6.fr X-IronPort-AV: E=Sophos;i="5.30,343,1470693600"; d="scan'208";a="193614245" Received: from 198.67.28.109.rev.sfr.net (HELO hadrien) ([109.28.67.198]) by mail3-relais-sop.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-SHA; 16 Sep 2016 07:39:29 +0200 Date: Fri, 16 Sep 2016 07:39:28 +0200 (CEST) From: Julia Lawall X-X-Sender: jll@hadrien To: Gargi Sharma cc: outreachy-kernel@googlegroups.com, gregkh@linuxfoundation.org Subject: Re: [Outreachy kernel] [PATCH 5/8] staging: wlan-ng: add spaces around << In-Reply-To: <73a02d3096f26d75f39cc09779e7d9f74eda9828.1473993585.git.gs051095@gmail.com> Message-ID: References: <73a02d3096f26d75f39cc09779e7d9f74eda9828.1473993585.git.gs051095@gmail.com> User-Agent: Alpine 2.10 (DEB 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Fri, 16 Sep 2016, Gargi Sharma wrote: > add spaces around << to fix the checkpatch issue, spaces preferred > around that '<<'. > > Signed-off-by: Gargi Sharma > --- > drivers/staging/wlan-ng/hfa384x.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/staging/wlan-ng/hfa384x.h b/drivers/staging/wlan-ng/hfa384x.h > index 4bbbce5..616da07 100644 > --- a/drivers/staging/wlan-ng/hfa384x.h > +++ b/drivers/staging/wlan-ng/hfa384x.h > @@ -508,7 +508,7 @@ Communication Frames: Test/Get/Set Field Values for Transmit Frames > HFA384x_TXSTATUS_DISCON | HFA384x_TXSTATUS_AGEDERR | \ > HFA384x_TXSTATUS_RETRYERR)) > > -#define HFA384x_TX_SET(v, m, s) ((((u16)(v))<<((u16)(s))) & ((u16)(m))) > +#define HFA384x_TX_SET(v, m, s) ((((u16)(v)) << ((u16)(s))) & ((u16)(m))) > > #define HFA384x_TX_MACPORT_SET(v) HFA384x_TX_SET(v, HFA384x_TX_MACPORT, 8) > #define HFA384x_TX_STRUCTYPE_SET(v) HFA384x_TX_SET(v, \ This code quite unnecessarily exceeds 80 characters. Add another patch to the series that moves the macro names to their normal position, one space after the #define. julia > -- > 2.9.2 > > -- > You received this message because you are subscribed to the Google Groups "outreachy-kernel" group. > To unsubscribe from this group and stop receiving emails from it, send an email to outreachy-kernel+unsubscribe@googlegroups.com. > To post to this group, send email to outreachy-kernel@googlegroups.com. > To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/73a02d3096f26d75f39cc09779e7d9f74eda9828.1473993585.git.gs051095%40gmail.com. > For more options, visit https://groups.google.com/d/optout. >