diff options
| author | Martin K. Petersen <[email protected]> | 2019-01-15 16:50:01 -0800 |
|---|---|---|
| committer | Martin K. Petersen <[email protected]> | 2019-01-22 21:18:27 -0500 |
| commit | e249e42d277ef4993230b193880fbe9a307084eb (patch) | |
| tree | 7a32748274369927913a3693c11da8f77a01cfc6 /tools/perf/scripts/python/export-to-sqlite.py | |
| parent | 78a02f49d0eb978b5eb85ffdf5f11582ac83c754 (diff) | |
scsi: sd: Clean up sd_setup_read_write_cmnd()
Rework sd_setup_read_write_cmnd() so it becomes more readable. Put all the
sanity checking at the head of the function and sanitize the logged error
messages. Move the legacy SCSI logging calls to the end of the functions
and reduce conditional nesting.
Reviewed-by: Hannes Reinecke <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
[ bvanassche: ported this patch from kernel v4.11 to kernel v5.0 ]
Signed-off-by: Bart Van Assche <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions