Skip to contentSkip to conversation

HID: hid-wiimote-core: Removed Unnecessary Braces

PATCH New Rebecca White 1 participant 1 message Apr 19, 2022

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 HID: hid-wiimote-core: Removed Unnecessary Braces

Removed unnecessary braces around a single line if/else statement

---
 drivers/hid/hid-wiimote-core.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
drivers/hid/hid-wiimote-core.c +2 -3
index 4399d6c6a..84180f3b8 100644
@@ -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