diff options
author | Bart Van Assche <[email protected]> | 2024-09-12 15:30:04 -0700 |
---|---|---|
committer | Martin K. Petersen <[email protected]> | 2024-10-03 21:34:43 -0400 |
commit | fcd8b0450a9acbf3f0e88d749a72ef932df97663 (patch) | |
tree | cc1b334f2d9b1717db6944f3471cfaf3467f8fc9 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | e31931d646d3bc2223d9a275bac9cdc4963c5bc1 (diff) |
scsi: ufs: core: Make ufshcd_uic_cmd_compl() easier to analyze
In ufshcd_uic_cmd_compl(), there is code that dereferences 'cmd' with
and without checking the 'cmd' pointer. This confuses static source code
analyzers like Coverity and sparse. Since none of the code in
ufshcd_uic_cmd_compl() can do anything useful if 'cmd' is NULL, move the
'cmd' test near the start of this function.
Signed-off-by: Bart Van Assche <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Reviewed-by: Peter Wang <[email protected]>
Reviewed-by: Bao D. Nguyen <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions