diff options
author | 2020-09-08 10:15:14 +0200 | |
---|---|---|
committer | 2020-09-09 22:01:43 -0400 | |
commit | 622299f16f33852baddf94b32bc80e2c1e24c39a (patch) | |
tree | 6f31f4353bd1f9649461a06d58fde288aa13980e /tools/perf/scripts/python/export-to-postgresql.py | |
parent | scsi: qla2xxx: Warn if done() or free() are called on an already freed srb (diff) | |
download | wireguard-linux-622299f16f33852baddf94b32bc80e2c1e24c39a.tar.xz wireguard-linux-622299f16f33852baddf94b32bc80e2c1e24c39a.zip |
scsi: qla2xxx: Simplify return value logic in qla2x00_get_sp_from_handle()
Refactor qla2x00_get_sp_from_handle() to avoid the unnecessary goto if
early returns are used. With this we can also avoid preinitialzing the sp
pointer.
Link: https://lore.kernel.org/r/20200908081516.8561-3-dwagner@suse.de
Reviewed-by: Martin Wilck <mwilck@suse.com>
Reviewed-by: Arun Easi <aeasi@marvell.com>
Signed-off-by: Daniel Wagner <dwagner@suse.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions