Re: [PATCH 1/9] Staging:wlan-ng:cfg80211.c,p80211conv.h,p80211metastruct.h,p80211netdev.h: Fixed code style issue by decreasing charecters in one line to fit within 80

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Jul 24, 2013 at 08:55:34PM +0530, Kumar Gaurav wrote:
> Thanks for your valuable suggestions.
> Sorry to ask stupid questions but still i do have before i can
> correct fix for above. Please spare me and answer them
> 
>     1.    Is it correct to change variable names for long variables
> in code without notifying the author of the code?

Sending to kernel-janitors is just practice.  Next time send it to
the people from ./scripts/get_maintainer.pl (You need git for this
to work correctly really).

But I help maintain staging/ so I know what patches are likely to be
applied there.

>     2.    How would i align long statement in multiple lines so that
> they remain readable (this i'll google now, but still adding)

-		bss = cfg80211_inform_bss(wiphy,
-                       ieee80211_get_channel(wiphy, ieee80211_dsss_chan_to_freq(msg2.dschannel.data)),
+		freq = ieee80211_dsss_chan_to_freq(msg2.dschannel.data);
+		chan = ieee80211_get_channel(wiphy, freq);
+		bss = cfg80211_inform_bss(wiphy, chan, ...

etc.

regards,
dan carpenter

--
To unsubscribe from this list: send the line "unsubscribe kernel-janitors" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Kernel Development]     [Kernel Announce]     [Kernel Newbies]     [Linux Networking Development]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Device Mapper]

  Powered by Linux