diff options
author | 2023-06-06 14:55:43 +0800 | |
---|---|---|
committer | 2023-06-06 10:37:19 +0200 | |
commit | b9dad156af1fd6c66ffa40f007c09823a8319abe (patch) | |
tree | 84502ce8462fb620c89902a4eb0711baf17f62c5 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | mm/slab: remove HAVE_HARDENED_USERCOPY_ALLOCATOR (diff) | |
download | wireguard-linux-b9dad156af1fd6c66ffa40f007c09823a8319abe.tar.xz wireguard-linux-b9dad156af1fd6c66ffa40f007c09823a8319abe.zip |
mm/slab_common: reduce an if statement in create_cache()
Move the 'out:' statement block out of the successful path to avoid
redundant check on 'err'. The value of 'err' is always zero on success
and negative on failure.
No functional changes, no performance improvements, just a little more
readability.
Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com>
Reviewed-by: Hyeonggon Yoo <42.hyeyoo@gmail.com>
Signed-off-by: Vlastimil Babka <vbabka@suse.cz>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions