aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
authorOscar Carter <[email protected]>2020-04-25 17:17:45 +0200
committerGreg Kroah-Hartman <[email protected]>2020-04-28 14:26:29 +0200
commit8a5baa66b01f6bfbb4f2456fdd4a8fe3896d7119 (patch)
treec42b27a742b6fa1f9fbb8ccd147714c49ea611b1 /tools/perf/scripts/python/exported-sql-viewer.py
parent5fa83c2566660956e6556e1090e24c642eb93822 (diff)
staging: vt6656: Remove the local variable "array"
Remove the local variable "array" and all the memcpy function calls because this copy operation from different arrays to this variable is unnecessary. The vnt_control_out function already does a kmemdup copy of its const char *buffer argument and this was made unnecessary by: commit 12ecd24ef932 ("staging: vt6656: use off stack for out buffer USB transfers.") Author: Malcolm Priestley <[email protected]> Date: Sat Apr 22 11:14:57 2017 +0100 staging: vt6656: use off stack for out buffer USB transfers. Since 4.9 mandated USB buffers be heap allocated this causes the driver to fail. Since there is a wide range of buffer sizes use kmemdup to create allocated buffer. So, the same result can be achieved using the arrays directly. Signed-off-by: Oscar Carter <[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/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions