diff options
author | Felix Hädicke <[email protected]> | 2016-11-04 00:23:26 +0100 |
---|---|---|
committer | Felipe Balbi <[email protected]> | 2016-11-18 13:50:37 +0200 |
commit | 05e78c6933d613a7da0d0473f4c19c865af04c2c (patch) | |
tree | af263e55357cdce6dc940c0ae0c32eca934a252c /lib/test-string_helpers.c | |
parent | a25f0944ba9b1d8a6813fd6f1a86f1bd59ac25a6 (diff) |
usb: gadget: f_fs: fix wrong parenthesis in ffs_func_req_match()
Properly check the return code of ffs_func_revmap_intf() and
ffs_func_revmap_ep() for a non-negative value.
Instead of checking the return code, the comparison was performed for the last
parameter of the function calls, because of wrong parenthesis.
This also fixes the following static checker warning:
drivers/usb/gadget/function/f_fs.c:3152 ffs_func_req_match()
warn: always true condition '(((creq->wIndex)) >= 0) => (0-u16max >= 0)'
Reported-by: Dan Carpenter <[email protected]>
Signed-off-by: Felix Hädicke <[email protected]>
Signed-off-by: Felipe Balbi <[email protected]>
Diffstat (limited to 'lib/test-string_helpers.c')
0 files changed, 0 insertions, 0 deletions