From: Ngo Tak Fong <simon.fodin@gmail.com>
To: Larry.Finger@lwfinger.net, florian.c.schilhabel@googlemail.com,
gregkh@linuxfoundation.org
Cc: linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org
Subject: [PATCH] staging: rtl8712: Fix alignment checks
Date: Mon, 6 Dec 2021 08:19:49 +0800 [thread overview]
Message-ID: <20211206001949.GA54773@simon-desktop> (raw)
Fixed two CHECKs of Alignment should match open parenthesis.
Signed-off-by: Ngo Tak Fong <simon.fodin@gmail.com>
---
drivers/staging/rtl8712/rtl8712_efuse.c | 13 ++++++-------
1 file changed, 6 insertions(+), 7 deletions(-)
diff --git a/drivers/staging/rtl8712/rtl8712_efuse.c b/drivers/staging/rtl8712/rtl8712_efuse.c
index 4f3b54a7c3be..3555f612a066 100644
--- a/drivers/staging/rtl8712/rtl8712_efuse.c
+++ b/drivers/staging/rtl8712/rtl8712_efuse.c
@@ -300,16 +300,15 @@ static u8 fix_header(struct _adapter *adapter, u8 header, u16 header_addr)
for (i = 0; i < PGPKG_MAX_WORDS; i++) {
if (BIT(i) & word_en) {
if (BIT(i) & pkt.word_en) {
- if (efuse_one_byte_read(
- adapter, addr,
- &value))
+ if (efuse_one_byte_read(adapter,
+ addr,
+ &value))
pkt.data[i * 2] = value;
else
return false;
- if (efuse_one_byte_read(
- adapter,
- addr + 1,
- &value))
+ if (efuse_one_byte_read(adapter,
+ addr + 1,
+ &value))
pkt.data[i * 2 + 1] =
value;
else
--
2.32.0
next reply other threads:[~2021-12-06 0:19 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-12-06 0:19 Ngo Tak Fong [this message]
2021-12-06 14:22 ` [PATCH] staging: rtl8712: Fix alignment checks 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=20211206001949.GA54773@simon-desktop \
--to=simon.fodin@gmail.com \
--cc=Larry.Finger@lwfinger.net \
--cc=florian.c.schilhabel@googlemail.com \
--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 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.