Skip to contentSkip to conversation

HID: i2c-hid: remove unneeded semicolon

PATCH Superseded Yang Li 2 participants 2 messages Feb 16, 2022 HID

lore
Share & tools
lore

Yang Li

author
#0 lore raw

PATCH 1/1 HID: i2c-hid: remove unneeded semicolon

Eliminate the following coccicheck warning:
./drivers/hid/i2c-hid/i2c-hid-core.c:357:56-57: Unneeded semicolon

---
 drivers/hid/i2c-hid/i2c-hid-core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/hid/i2c-hid/i2c-hid-core.c +1 -1
index 91b2fa0d33c7..c078f09a2318 100644
@@ -354,7 +354,7 @@ static int i2c_hid_set_or_send_report(struct i2c_hid *ihid,
 		 * With simple "send report" all data goes into the output
 		 * register.
 		 */
-		*(__le16 *)ihid->cmdbuf = ihid->hdesc.wOutputRegister;;
+		*(__le16 *)ihid->cmdbuf = ihid->hdesc.wOutputRegister;
 		length += sizeof(__le16);
 	}
 
Signature · 1 line
2.20.1.7.g153144c
maintainer
#1 lore raw
Quoted 14 lines · Yang Li

Eliminate the following coccicheck warning:
./drivers/hid/i2c-hid/i2c-hid-core.c:357:56-57: Unneeded semicolon

---
 drivers/hid/i2c-hid/i2c-hid-core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/hid/i2c-hid/i2c-hid-core.c +0 -0
index 91b2fa0d33c7..c078f09a2318 100644

drivers/hid/i2c-hid/i2c-hid-core.c static int i2c_hid_set_or_send_report(struct i2c_hid *ihid, · line 359

Quoted 7 lines
drivers/hid/i2c-hid/i2c-hid-core.c +1 -1
@@ -354,7 +354,7 @@ static int i2c_hid_set_or_send_report(struct i2c_hid *ihid,
 		 * With simple "send report" all data goes into the output
 		 * register.
 		 */
-		*(__le16 *)ihid->cmdbuf = ihid->hdesc.wOutputRegister;;
+		*(__le16 *)ihid->cmdbuf = ihid->hdesc.wOutputRegister;
 		length += sizeof(__le16);
 	}

Thanks, that was me fat-fingering the fixup in the original patch. Applied.

Signature · 2 lines
Jiri Kosina
SUSE Labs