HID: sony: remove redundant assignment
authorColin Ian King <colin.i.king@gmail.com>
Thu, 28 Mar 2024 12:22:13 +0000 (12:22 +0000)
committerJiri Kosina <jkosina@suse.com>
Fri, 12 Apr 2024 15:55:57 +0000 (17:55 +0200)
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 <colin.i.king@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.com>
drivers/hid/hid-sony.c

index ebc0aa4e4345febb0240eba81b0f7b2424264df2..1d37b39e1171f5cc54d727d2057094d9979774e9 100644 (file)
@@ -2016,8 +2016,6 @@ static int sony_input_configured(struct hid_device *hdev,
 
        } else if (sc->quirks & MOTION_CONTROLLER) {
                sony_init_output_report(sc, motion_send_output_report);
-       } else {
-               ret = 0;
        }
 
        if (sc->quirks & SONY_LED_SUPPORT) {