diff options
| author | Masahiro Yamada <[email protected]> | 2020-04-03 13:16:51 +0000 |
|---|---|---|
| committer | Felipe Balbi <[email protected]> | 2020-05-09 08:05:08 +0000 |
| commit | d13cce757954fa663c69845611957396843ed87a (patch) | |
| tree | b419f4f638ae159aa2c5f7630010bbd3fc82cce3 /tools/perf/scripts/python/stackcollapse.py | |
| parent | usb: gadget: tegra-xudc: Fix idle suspend/resume (diff) | |
| download | kernel-d13cce757954fa663c69845611957396843ed87a.tar.gz kernel-d13cce757954fa663c69845611957396843ed87a.zip | |
usb: gadget: legacy: fix redundant initialization warnings
Fix the following cppcheck warnings:
drivers/usb/gadget/legacy/inode.c:1364:8: style: Redundant initialization for 'value'. The initialized value is overwritten$
value = -EOPNOTSUPP;
^
drivers/usb/gadget/legacy/inode.c:1331:15: note: value is initialized
int value = -EOPNOTSUPP;
^
drivers/usb/gadget/legacy/inode.c:1364:8: note: value is overwritten
value = -EOPNOTSUPP;
^
drivers/usb/gadget/legacy/inode.c:1817:8: style: Redundant initialization for 'value'. The initialized value is overwritten$
value = -EINVAL;
^
drivers/usb/gadget/legacy/inode.c:1787:18: note: value is initialized
ssize_t value = len, length = len;
^
drivers/usb/gadget/legacy/inode.c:1817:8: note: value is overwritten
value = -EINVAL;
^
Acked-by: Alan Stern <[email protected]>
Reported-by: kbuild test robot <[email protected]>
Signed-off-by: Masahiro Yamada <[email protected]>
Signed-off-by: Felipe Balbi <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
