From: Paul McQuade <paulmcquad@gmail.com>
To: paulmcquad@gmail.com
Cc: devel@driverdev.osuosl.org, keescook@chromium.org,
johannes.berg@intel.com, gregkh@linuxfoundation.org,
linux-kernel@vger.kernel.org, Linyu.Yuan@alcatel-sbell.com.cn,
hdegoede@redhat.com, arnd@arndb.de, arvind.yadav.cs@gmail.com,
colin.king@canonical.com, davem@davemloft.net,
Larry.Finger@lwfinger.net
Subject: [PATCH 3/5] Staging:rtl8723bs:os_dep braces not necessary
Date: Mon, 19 Mar 2018 14:34:58 +0000 [thread overview]
Message-ID: <20180319143500.19623-3-paulmcquad@gmail.com> (raw)
In-Reply-To: <20180319143500.19623-1-paulmcquad@gmail.com>
WARNING: braces {} are not necessary for any arm of this statement
Signed-off-by: Paul McQuade <paulmcquad@gmail.com>
---
drivers/staging/rtl8723bs/os_dep/recv_linux.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/staging/rtl8723bs/os_dep/recv_linux.c b/drivers/staging/rtl8723bs/os_dep/recv_linux.c
index e804b430931c..117fda4fa1bf 100644
--- a/drivers/staging/rtl8723bs/os_dep/recv_linux.c
+++ b/drivers/staging/rtl8723bs/os_dep/recv_linux.c
@@ -181,11 +181,11 @@ void rtw_os_recv_indicate_pkt(struct adapter *padapter, _pkt *pkt, struct rx_pkt
pkt->dev = padapter->pnetdev;
#ifdef CONFIG_TCP_CSUM_OFFLOAD_RX
- if ((pattrib->tcpchk_valid == 1) && (pattrib->tcp_chkrpt == 1)) {
+ if ((pattrib->tcpchk_valid == 1) && (pattrib->tcp_chkrpt == 1))
pkt->ip_summed = CHECKSUM_UNNECESSARY;
- } else {
+ else
pkt->ip_summed = CHECKSUM_NONE;
- }
+
#else /* !CONFIG_TCP_CSUM_OFFLOAD_RX */
pkt->ip_summed = CHECKSUM_NONE;
#endif /* CONFIG_TCP_CSUM_OFFLOAD_RX */
--
2.16.2
_______________________________________________
devel mailing list
devel@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel
next prev parent reply other threads:[~2018-03-19 14:34 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-03-19 14:34 [PATCH 1/5] Staging: rtl8723bs: os_dep Paul McQuade
2018-03-19 14:34 ` [PATCH 2/5] Staging: rtl8723bs: os_dep Spacing issue Paul McQuade
2018-03-19 14:34 ` Paul McQuade [this message]
2018-03-19 14:34 ` [PATCH 4/5] Staging:rtl8723bs:os_dep blank line needed Paul McQuade
2018-03-19 14:35 ` [PATCH 5/5] Staging:rtl8723bs:os_dep Fixed braces Paul McQuade
2018-03-19 15:43 ` [PATCH 1/5] Staging: rtl8723bs: os_dep Greg KH
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=20180319143500.19623-3-paulmcquad@gmail.com \
--to=paulmcquad@gmail.com \
--cc=Larry.Finger@lwfinger.net \
--cc=Linyu.Yuan@alcatel-sbell.com.cn \
--cc=arnd@arndb.de \
--cc=arvind.yadav.cs@gmail.com \
--cc=colin.king@canonical.com \
--cc=davem@davemloft.net \
--cc=devel@driverdev.osuosl.org \
--cc=gregkh@linuxfoundation.org \
--cc=hdegoede@redhat.com \
--cc=johannes.berg@intel.com \
--cc=keescook@chromium.org \
--cc=linux-kernel@vger.kernel.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