summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>2018-03-19 21:53:27 +0100
committerJiri Kosina <jkosina@suse.cz>2018-04-26 14:33:35 +0200
commitedb6cb3d7c9026d1a3bdfde9f74ed6c807285206 (patch)
treec1c10619a7ca56a487ae360e704eb95729d6cc71 /tools/perf/scripts/python/export-to-sqlite.py
parent605f077290a594c75a952ad3b78e53d68c1895ae (diff)
HID: alps: Save a memory allocation in 't4_read_write_register()' when writing data
if 'read_flag' is false, there is no need to allocate and free memory. We can simply avoid the memory allocation and pass NULL to kfree. Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions