diff options
author | Colin Ian King <colin.i.king@gmail.com> | 2024-03-28 12:22:13 +0000 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.com> | 2024-04-12 17:55:57 +0200 |
commit | 4e124ed0da2939dcd27849a3d6f41fbc537a20be (patch) | |
tree | b13cf92ab1c9ac6f841473c3c08f018e11443b56 | |
parent | 3e78a6c0d3e02e4cf881dc84c5127e9990f939d6 (diff) | |
download | lwn-4e124ed0da2939dcd27849a3d6f41fbc537a20be.tar.gz lwn-4e124ed0da2939dcd27849a3d6f41fbc537a20be.zip |
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 <colin.i.king@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.com>
-rw-r--r-- | drivers/hid/hid-sony.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/hid/hid-sony.c b/drivers/hid/hid-sony.c index ebc0aa4e4345..1d37b39e1171 100644 --- a/drivers/hid/hid-sony.c +++ b/drivers/hid/hid-sony.c @@ -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) { |