From: Dan Carpenter <dan.carpenter@oracle.com>
To: dev.dragon@bk.ru
Cc: gregkh@linuxfoundation.org, linux-staging@lists.linux.dev,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] Staging: rtl8192u: ieee80211: fixed a trailing statements coding style issue.
Date: Fri, 9 Apr 2021 16:14:04 +0300 [thread overview]
Message-ID: <20210409131403.GB6021@kadam> (raw)
In-Reply-To: <20210404051500.6644-1-dev.dragon@bk.ru>
On Sun, Apr 04, 2021 at 08:15:00AM +0300, dev.dragon@bk.ru wrote:
> From: Dmitrii Wolf <dev.dragon@bk.ru>
>
> Signed-off-by: Dmitrii Wolf <dev.dragon@bk.ru>
> ---
> drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c | 8 ++++----
> 1 file changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c b/drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c
> index 690b664df8fa..29a6ce20e2bd 100644
> --- a/drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c
> +++ b/drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c
> @@ -2048,12 +2048,12 @@ void ieee80211_softmac_xmit(struct ieee80211_txb *txb, struct ieee80211_device *
> /* if xmit available, just xmit it immediately, else just insert it to the wait queue */
> for (i = 0; i < txb->nr_frags; i++) {
> #ifdef USB_TX_DRIVER_AGGREGATION_ENABLE
> - if ((skb_queue_len(&ieee->skb_drv_aggQ[queue_index]) != 0) ||
> + if ((skb_queue_len(&ieee->skb_drv_aggQ[queue_index]) != 0)
> #else
> - if ((skb_queue_len(&ieee->skb_waitQ[queue_index]) != 0) ||
> + if ((skb_queue_len(&ieee->skb_waitQ[queue_index]) != 0)
> #endif
> - (!ieee->check_nic_enough_desc(ieee->dev, queue_index)) || \
> - (ieee->queue_stop)) {
> + || (!ieee->check_nic_enough_desc(ieee->dev, queue_index)) \
> + || (ieee->queue_stop)) {
No. The || go on the end, the way the original code had it. I've no
idea what you were trying to fix. Maybe the \ characters?
regards,
dan carpenter
prev parent reply other threads:[~2021-04-09 13:14 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-04-04 5:15 [PATCH] Staging: rtl8192u: ieee80211: fixed a trailing statements coding style issue dev.dragon
2021-04-04 9:58 ` Greg KH
2021-04-09 13:14 ` Dan Carpenter [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=20210409131403.GB6021@kadam \
--to=dan.carpenter@oracle.com \
--cc=dev.dragon@bk.ru \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-staging@lists.linux.dev \
/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