summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorMichał Kępień <kernel@kempniu.pl>2018-02-11 22:07:23 +0100
committerDarren Hart (VMware) <dvhart@infradead.org>2018-02-24 13:37:36 -0800
commit7f83d410440e63b173a91c65bb2515fa38501092 (patch)
tree6c0c38fd7cd796d4d8297652e6d113f91513bc08 /tools/perf/scripts/python/export-to-postgresql.py
parenta7a1ccbee3b61bdb044d3bbee958a3082cf8f9f9 (diff)
platform/x86: fujitsu-laptop: Simplify error paths
Replace the last few lines of acpi_fujitsu_bl_add() with a simple return in order to improve code readability without changing the logic. As acpi_fujitsu_laptop_add() uses a managed memory allocation for device-specific data, it is fine to just return immediately upon kfifo allocation failure. Do that instead of jumping to the end of the function to improve code readability. Running out of memory while allocating the kfifo does not seem probable enough to warrant logging an error message, so do not do it. Signed-off-by: Michał Kępień <kernel@kempniu.pl> Reviewed-by: Jonathan Woithe <jwoithe@just42.net> Signed-off-by: Darren Hart (VMware) <dvhart@infradead.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions