From: Rebecca White <rtw@null.net>
To: david.rheinsberg@gmail.com
Cc: linux-input@vger.kernel.org, linux-kernel@vger.kernel.org,
Rebecca White <rtw@null.net>
Subject: [PATCH] HID: hid-wiimote-core: Removed Unnecessary Braces
Date: Tue, 19 Apr 2022 22:15:30 +0100 [thread overview]
Message-ID: <20220419211530.10123-1-rtw@null.net> (raw)
Removed unnecessary braces around a single line if/else statement
Signed-off-by: Rebecca White <rtw@null.net>
---
drivers/hid/hid-wiimote-core.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/drivers/hid/hid-wiimote-core.c b/drivers/hid/hid-wiimote-core.c
index 4399d6c6a..84180f3b8 100644
--- a/drivers/hid/hid-wiimote-core.c
+++ b/drivers/hid/hid-wiimote-core.c
@@ -1681,11 +1681,10 @@ static ssize_t wiimote_ext_store(struct device *dev,
{
struct wiimote_data *wdata = dev_to_wii(dev);
- if (!strcmp(buf, "scan")) {
+ if (!strcmp(buf, "scan"))
wiimote_schedule(wdata);
- } else {
+ else
return -EINVAL;
- }
return strnlen(buf, PAGE_SIZE);
}
--
2.35.3
reply other threads:[~2022-04-19 21:16 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20220419211530.10123-1-rtw@null.net \
--to=rtw@null.net \
--cc=david.rheinsberg@gmail.com \
--cc=linux-input@vger.kernel.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
all inboxes | Powered by JetHome®