diff options
| author | Daniel Wagner <[email protected]> | 2020-09-08 10:15:14 +0200 |
|---|---|---|
| committer | Martin K. Petersen <[email protected]> | 2020-09-09 22:01:43 -0400 |
| commit | 622299f16f33852baddf94b32bc80e2c1e24c39a (patch) | |
| tree | 6f31f4353bd1f9649461a06d58fde288aa13980e /tools/perf/scripts/python/net_dropmonitor.py | |
| parent | c0014f94218ea3a312f6235febea0d626c5f2154 (diff) | |
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/[email protected]
Reviewed-by: Martin Wilck <[email protected]>
Reviewed-by: Arun Easi <[email protected]>
Signed-off-by: Daniel Wagner <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions