diff options
| author | Suwan Kim <[email protected]> | 2019-01-07 23:21:11 +0900 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2019-01-07 17:34:59 +0100 |
| commit | f2fd71db12f8269a0384321c3c71a9312c66b415 (patch) | |
| tree | 3f4334212b31e1bbbb4e69b1924b76b8c65c8055 /tools/perf/scripts/python/failed-syscalls-by-pid.py | |
| parent | bfeffd155283772bbe78c6a05dec7c0128ee500c (diff) | |
usb: core: Simplify return value of usb_get_configuration()
It is better to initialize the return value "result" to -ENOMEM
than to 0. And because "result" takes the return value of
usb_parse_configuration() which returns 0 for success, setting
"result" to 0 at before and after of the for loop is unnecessary.
Signed-off-by: Suwan Kim <[email protected]>
Acked-by: Alan Stern <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/failed-syscalls-by-pid.py')
0 files changed, 0 insertions, 0 deletions