diff options
author | Hans de Goede <[email protected]> | 2023-12-02 23:46:10 +0100 |
---|---|---|
committer | Jiri Kosina <[email protected]> | 2023-12-06 11:48:40 +0100 |
commit | aa69d6974185e9f7a552ba982540a38e34f69690 (patch) | |
tree | eca2366a4d2a49940071fac9aea1e44356772528 /lib/test_fortify/write_overflow-strncpy-src.c | |
parent | 96d3098db835d58649b73a5788898bd7672a319b (diff) |
HID: i2c-hid: Switch i2c_hid_parse() to goto style error handling
Switch i2c_hid_parse() to goto style error handling.
This is a preparation patch for removing the need for
I2C_HID_QUIRK_NO_IRQ_AFTER_RESET by making i2c-hid behave
more like Windows.
Note this changes the descriptor read error path to propagate
the actual i2c_hid_read_register() error code (which is always
negative) instead of hardcoding a -EIO return.
Reviewed-by: Douglas Anderson <[email protected]>
Signed-off-by: Hans de Goede <[email protected]>
Signed-off-by: Jiri Kosina <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions