aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorSuwan Kim <suwan.kim027@gmail.com>2019-01-07 23:21:11 +0900
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-01-07 17:34:59 +0100
commitf2fd71db12f8269a0384321c3c71a9312c66b415 (patch)
tree3f4334212b31e1bbbb4e69b1924b76b8c65c8055 /tools/perf/scripts/python
parentLinux 5.0-rc1 (diff)
downloadlinux-f2fd71db12f8269a0384321c3c71a9312c66b415.tar.gz
linux-f2fd71db12f8269a0384321c3c71a9312c66b415.zip
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 <suwan.kim027@gmail.com> Acked-by: Alan Stern <stern@rowland.harvard.edu> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions