From: Igor Ribeiro Barbosa Duarte <igor.ribeiro.duarte@gmail.com>
To: Greg KH <gregkh@linuxfoundation.org>
Cc: devel@driverdev.osuosl.org, igor.ribeiro.duarte@gmail.com
Subject: Re: [PATCH] staging: wlan-ng: Fix number of characters warning style.
Date: Tue, 26 May 2020 12:27:55 -0300 [thread overview]
Message-ID: <20200526152755.GA24141@igor-Aspire-F5-573G> (raw)
In-Reply-To: <20200526055932.GB2576013@kroah.com>
On Tue, May 26, 2020 at 07:59:32AM +0200, Greg KH wrote:
> On Mon, May 25, 2020 at 07:10:25PM -0300, Igor Ribeiro Barbosa Duarte wrote:
> > Fix checkpatch error "WARNING: line over 80 characters" at cfg80211.c:451
> >
> > Signed-off-by: Igor Ribeiro Barbosa Duarte <igor.ribeiro.duarte@gmail.com>
> > ---
> > drivers/staging/wlan-ng/cfg80211.c | 7 ++++---
> > 1 file changed, 4 insertions(+), 3 deletions(-)
> >
> > diff --git a/drivers/staging/wlan-ng/cfg80211.c b/drivers/staging/wlan-ng/cfg80211.c
> > index fac38c8..a911bcd 100644
> > --- a/drivers/staging/wlan-ng/cfg80211.c
> > +++ b/drivers/staging/wlan-ng/cfg80211.c
> > @@ -447,9 +447,10 @@ static int prism2_connect(struct wiphy *wiphy, struct net_device *dev,
> > /* Set the channel */
> > if (channel) {
> > chan = ieee80211_frequency_to_channel(channel->center_freq);
> > - result = prism2_domibset_uint32(wlandev,
> > - DIDMIB_DOT11PHY_DSSSTABLE_CURRENTCHANNEL,
> > - chan);
> > + result = prism2_domibset_uint32
> > + (wlandev,
> > + DIDMIB_DOT11PHY_DSSSTABLE_CURRENTCHANNEL,
> > + chan);
>
> The original really is easier to read and understand, don't you think
> so?
>
> Checkpatch is a hint, it doesn't always have to be followed exactly.
> Perhaps that crazy #define could be shortened, or use a more
> conventional name?
>
> thanks,
>
> greg k-h
Right, I'll check this. Thank you.
_______________________________________________
devel mailing list
devel@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel
prev parent reply other threads:[~2020-05-26 15:28 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-25 22:10 [PATCH] staging: wlan-ng: Fix number of characters warning style Igor Ribeiro Barbosa Duarte
2020-05-26 5:59 ` Greg KH
2020-05-26 15:27 ` Igor Ribeiro Barbosa Duarte [this message]
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=20200526152755.GA24141@igor-Aspire-F5-573G \
--to=igor.ribeiro.duarte@gmail.com \
--cc=devel@driverdev.osuosl.org \
--cc=gregkh@linuxfoundation.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).