Skip to content

Commit 4e124ed

Browse files
ColinIanKingJiri Kosina
authored andcommitted
HID: sony: remove redundant assignment
The variable ret is being assigned a value that is never read afterwards. The assignment is redundant and can be removed. Cleans up clang scan build warning: drivers/hid/hid-sony.c:2020:3: warning: Value stored to 'ret' is never read [deadcode.DeadStores] Signed-off-by: Colin Ian King <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
1 parent 3e78a6c commit 4e124ed

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/hid/hid-sony.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2016,8 +2016,6 @@ static int sony_input_configured(struct hid_device *hdev,
20162016

20172017
} else if (sc->quirks & MOTION_CONTROLLER) {
20182018
sony_init_output_report(sc, motion_send_output_report);
2019-
} else {
2020-
ret = 0;
20212019
}
20222020

20232021
if (sc->quirks & SONY_LED_SUPPORT) {

0 commit comments

Comments
 (0)