From: Dan Carpenter <dan.carpenter@oracle.com>
To: "Rodolfo C. Villordo" <rodolfovillordo@gmail.com>
Cc: Forest Bond <forest@alittletooquiet.net>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: Forest Bond <forest@alittletooquiet.net>,Greg Kroah-Hartman <gregkh@linuxfoundation.org>,devel@d
Date: Mon, 08 Jun 2020 07:26:25 +0000 [thread overview]
Message-ID: <20200608072625.GV30374@kadam> (raw)
In-Reply-To: <20200607224156.GA24090@ip-172-31-24-31.ec2.internal>
On Sun, Jun 07, 2020 at 10:41:56PM +0000, Rodolfo C. Villordo wrote:
> /* RTSRrvTime */
> - uRrvTime = uRTSTime + uCTSTime + uAckTime + uDataTime + 3 * pDevice->uSIFS;
> + uRrvTime = uRTSTime + uCTSTime + uAckTime + uDataTime
> + + 3 * pDevice->uSIFS;
The + character should go on the first line:
uRrvTime = uRTSTime + uCTSTime + uAckTime + uDataTime +
3 * pDevice->uSIFS;
The second line should be indented with:
[tab][tab][space][space][space]3 * pDevice->uSIFS;
Same rules apply everywhere. I'm not going to comment on every line.
> case RTSDUR_BA_F0: /* RTSDuration_ba_f0 */
> - uCTSTime = bb_get_frame_time(pDevice->byPreambleType, byPktType, 14, pDevice->byTopCCKBasicRate);
> - if ((byFBOption = AUTO_FB_0) && (wRate >= RATE_18M) && (wRate <= RATE_54M))
> + uCTSTime = bb_get_frame_time(pDevice->byPreambleType, byPktType,
> + 14, pDevice->byTopCCKBasicRate);
> + if ((byFBOption = AUTO_FB_0) && (wRate >= RATE_18M) &&
> + (wRate <= RATE_54M))
Here it's awkward to break the two wRate conditions across multiple
lines. It's better to write:
if ((byFBOption = AUTO_FB_0) &&
(wRate >= RATE_18M) && (wRate <= RATE_54M))
regards,
dan carpenter
WARNING: multiple messages have this Message-ID (diff)
From: Dan Carpenter <dan.carpenter@oracle.com>
To: "Rodolfo C. Villordo" <rodolfovillordo@gmail.com>
Cc: Forest Bond <forest@alittletooquiet.net>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: Forest Bond <forest@alittletooquiet.net>,Greg Kroah-Hartman <gregkh@linuxfoundation.org>,devel@driverdev.osuosl.org,linux-kernel@vger.kernel.org
Date: Mon, 8 Jun 2020 10:26:25 +0300 [thread overview]
Message-ID: <20200608072625.GV30374@kadam> (raw)
In-Reply-To: <20200607224156.GA24090@ip-172-31-24-31.ec2.internal>
On Sun, Jun 07, 2020 at 10:41:56PM +0000, Rodolfo C. Villordo wrote:
> /* RTSRrvTime */
> - uRrvTime = uRTSTime + uCTSTime + uAckTime + uDataTime + 3 * pDevice->uSIFS;
> + uRrvTime = uRTSTime + uCTSTime + uAckTime + uDataTime
> + + 3 * pDevice->uSIFS;
The + character should go on the first line:
uRrvTime = uRTSTime + uCTSTime + uAckTime + uDataTime +
3 * pDevice->uSIFS;
The second line should be indented with:
[tab][tab][space][space][space]3 * pDevice->uSIFS;
Same rules apply everywhere. I'm not going to comment on every line.
> case RTSDUR_BA_F0: /* RTSDuration_ba_f0 */
> - uCTSTime = bb_get_frame_time(pDevice->byPreambleType, byPktType, 14, pDevice->byTopCCKBasicRate);
> - if ((byFBOption == AUTO_FB_0) && (wRate >= RATE_18M) && (wRate <= RATE_54M))
> + uCTSTime = bb_get_frame_time(pDevice->byPreambleType, byPktType,
> + 14, pDevice->byTopCCKBasicRate);
> + if ((byFBOption == AUTO_FB_0) && (wRate >= RATE_18M) &&
> + (wRate <= RATE_54M))
Here it's awkward to break the two wRate conditions across multiple
lines. It's better to write:
if ((byFBOption == AUTO_FB_0) &&
(wRate >= RATE_18M) && (wRate <= RATE_54M))
regards,
dan carpenter
next prev parent reply other threads:[~2020-06-08 7:26 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-06-07 22:41 Forest Bond <forest@alittletooquiet.net>,Greg Kroah-Hartman <gregkh@linuxfoundation.org>,devel@drive Rodolfo C. Villordo
2020-06-07 22:41 ` Forest Bond <forest@alittletooquiet.net>,Greg Kroah-Hartman <gregkh@linuxfoundation.org>,devel@driverdev.osuosl.org,linux-kernel@vger.kernel.org Rodolfo C. Villordo
2020-06-08 5:15 ` Forest Bond <forest@alittletooquiet.net>,Greg Kroah-Hartman <gregkh@linuxfoundation.org>,devel@d Greg Kroah-Hartman
2020-06-08 5:15 ` Forest Bond <forest@alittletooquiet.net>,Greg Kroah-Hartman <gregkh@linuxfoundation.org>,devel@driverdev.osuosl.org,linux-kernel@vger.kernel.org Greg Kroah-Hartman
2020-06-08 5:46 ` Forest Bond <forest@alittletooquiet.net>,Greg Kroah-Hartman <gregkh@linuxfoundation.org>,devel@d Al Viro
2020-06-08 5:46 ` Forest Bond <forest@alittletooquiet.net>,Greg Kroah-Hartman <gregkh@linuxfoundation.org>,devel@driverdev.osuosl.org,linux-kernel@vger.kernel.org Al Viro
2020-06-08 5:59 ` Forest Bond <forest@alittletooquiet.net>,Greg Kroah-Hartman <gregkh@linuxfoundation.org>,devel@d Julia Lawall
2020-06-08 5:59 ` Forest Bond <forest@alittletooquiet.net>,Greg Kroah-Hartman <gregkh@linuxfoundation.org>,devel@driverdev.osuosl.org,linux-kernel@vger.kernel.org Julia Lawall
2020-06-08 8:41 ` Forest Bond <forest@alittletooquiet.net>,Greg Kroah-Hartman <gregkh@linuxfoundation.org>,devel@d Joe Perches
2020-06-08 8:41 ` Forest Bond <forest@alittletooquiet.net>,Greg Kroah-Hartman <gregkh@linuxfoundation.org>,devel@driverdev.osuosl.org,linux-kernel@vger.kernel.org Joe Perches
[not found] ` <20200608225838.GA26559@ip-172-31-24-31.ec2.internal>
2020-06-08 23:33 ` Joe Perches
2020-06-10 19:20 ` Rodolfo C Villordo
2020-06-08 7:26 ` Dan Carpenter [this message]
2020-06-08 7:26 ` Dan Carpenter
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=20200608072625.GV30374@kadam \
--to=dan.carpenter@oracle.com \
--cc=forest@alittletooquiet.net \
--cc=gregkh@linuxfoundation.org \
--cc=kernel-janitors@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=rodolfovillordo@gmail.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.