All of lore.kernel.org
 help / color / mirror / Atom feed
From: Vladimir Kondratiev <vkondrat@qualcomm.com>
To: Johannes Berg <johannes@sipsolutions.net>
Cc: Vladimir Kondratiev <qca_vkondrat@qca.qualcomm.com>,
	"John W . Linville" <linville@tuxdriver.com>,
	linux-wireless@vger.kernel.org,
	"Luis R . Rodriguez" <rodrigue@qca.qualcomm.com>
Subject: Re: [RFC 60g 2/5] wireless: rate check logic for 60g
Date: Sun, 01 Jul 2012 15:05:44 +0300	[thread overview]
Message-ID: <1497614.ftLOcXq5Bn@lx-vladimir> (raw)
In-Reply-To: <1340906664.4491.47.camel@jlt3.sipsolutions.net>

On Thursday, June 28, 2012 08:04:24 PM Johannes Berg wrote:
> On Thu, 2012-06-28 at 14:16 +0300, Vladimir Kondratiev wrote:
> > +		/*
> > +		 * on 60gHz band, there are no legacy rates, so
> > +		 * n_bitrates is 0
> > +		 */
> > +		if (WARN_ON((band != IEEE80211_BAND_60GHZ) &&
> > +		    !sband->n_bitrates))
> > 
> >  			return -EINVAL;
> 
> Please fix indentation.
> 
> johannes

I am confused a bit. What is "proper" identation for this case
(wrapped expression)?
Immediately following code use same identation (4 spaces).

		if (cfg80211_disable_40mhz_24ghz &&
		    band == IEEE80211_BAND_2GHZ &&
		    sband->ht_cap.ht_supported) {
			sband->ht_cap.cap &= ~IEEE80211_HT_CAP_SUP_WIDTH_20_40;
			sband->ht_cap.cap &= ~IEEE80211_HT_CAP_SGI_40;
		}

Should I ident line containing (see above):
!sband->n_bitrates))
with:
 - 4 spaces as next code fragment,
 - one tab (same level as 'return')
 - 2 tabs (one level more then 'return')
 - other (what?)



  reply	other threads:[~2012-07-01 12:07 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-28 11:16 [RFC 60g 0/5] Infrastructure for 60g (802.11ad) Vladimir Kondratiev
2012-06-28 11:16 ` [RFC 60g 1/5] wireless: add 802.11ad (60gHz band) Vladimir Kondratiev
2012-06-28 18:03   ` Johannes Berg
2012-06-28 11:16 ` [RFC 60g 2/5] wireless: rate check logic for 60g Vladimir Kondratiev
2012-06-28 18:04   ` Johannes Berg
2012-07-01 12:05     ` Vladimir Kondratiev [this message]
2012-06-28 11:16 ` [RFC 60g 3/5] wireless: regulatory " Vladimir Kondratiev
2012-06-28 11:16 ` [RFC 60g 4/5] wireless: 60g protocol constants Vladimir Kondratiev
2012-06-28 18:06   ` Johannes Berg
2012-06-28 11:17 ` [RFC 60g 5/5] wireless: bitrate calculation for 60g Vladimir Kondratiev
2012-06-28 18:07   ` Johannes Berg
     [not found]     ` <1703117.VxUDt2UvbQ@lx-vladimir>
     [not found]       ` <2090114.iKoJhGKOAs@lx-vladimir>
2012-07-02 19:28         ` Luis R. Rodriguez
2012-07-02 20:11           ` Johannes Berg
2012-07-02 20:13             ` Luis R. Rodriguez

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1497614.ftLOcXq5Bn@lx-vladimir \
    --to=vkondrat@qualcomm.com \
    --cc=johannes@sipsolutions.net \
    --cc=linux-wireless@vger.kernel.org \
    --cc=linville@tuxdriver.com \
    --cc=qca_vkondrat@qca.qualcomm.com \
    --cc=rodrigue@qca.qualcomm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.