* [PATCH] HID: hid-wiimote-core: Removed Unnecessary Braces
@ 2022-04-19 21:15 Rebecca White
0 siblings, 0 replies; only message in thread
From: Rebecca White @ 2022-04-19 21:15 UTC (permalink / raw)
To: david.rheinsberg; +Cc: linux-input, linux-kernel, Rebecca White
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-04-19 21:16 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-19 21:15 [PATCH] HID: hid-wiimote-core: Removed Unnecessary Braces Rebecca White
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®