aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorColin Ian King <[email protected]>2022-05-04 14:58:40 +0100
committerGreg Kroah-Hartman <[email protected]>2022-05-05 21:52:35 +0200
commitd7c90d9f9a5b6a85c09d37c5616d880d849a0c8b (patch)
tree04c051169b7f4a6fd2625e9b1015a653ae29a88f /tools/perf/scripts/python
parent3120aac6d0ecd9accf56894aeac0e265f74d3d5a (diff)
USB: gadget: Fix return of -EBUSY
Currently when driver->match_existing_only is true, the error return is set to -EBUSY however ret is then set to 0 at the end of the if/else statement. I believe the ret = 0 statement should be set in the else part of the if statement and not at the end to ensure -EBUSY is being returned correctly. Detected by clang scan: drivers/usb/gadget/udc/core.c:1558:4: warning: Value stored to 'ret' is never read [deadcode.DeadStores] Fixes: fc274c1e9973 ("USB: gadget: Add a new bus for gadgets") Acked-by: Alan Stern <[email protected]> Signed-off-by: Colin Ian King <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions