lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:   Tue, 19 Apr 2022 22:15:30 +0100
From:   Rebecca White <rtw@...l.net>
To:     david.rheinsberg@...il.com
Cc:     linux-input@...r.kernel.org, linux-kernel@...r.kernel.org,
        Rebecca White <rtw@...l.net>
Subject: [PATCH] HID: hid-wiimote-core: Removed Unnecessary Braces

Removed unnecessary braces around a single line if/else statement

Signed-off-by: Rebecca White <rtw@...l.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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ