aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/clang-tools/gen_compile_commands.py
diff options
context:
space:
mode:
authorDamien Le Moal <[email protected]>2023-06-23 07:30:57 +0000
committerMartin K. Petersen <[email protected]>2023-06-29 01:47:09 +0000
commit71e3e85ccf2b816e612c94b7460309dc5007caef (patch)
treec77309c8637db7a6d6a2613ad2785d371bd3676c /scripts/clang-tools/gen_compile_commands.py
parentscsi: isci: Fix comment typo (diff)
downloadkernel-71e3e85ccf2b816e612c94b7460309dc5007caef.tar.gz
kernel-71e3e85ccf2b816e612c94b7460309dc5007caef.zip
scsi: core: Simplify scsi_cdl_check_cmd()
Reading the 800+ pages of SPC often leads to a brain shutdown and to less than ideal code... This resulted in the checks of the rwcdlp and cdlp fields in scsi_cdl_check_cmd() to have identical if-else branches. Replace this with a comment describing the cases we are interested in and replace the if-else code block with a simple test of the cdlp field that is used as the function return value. Reported-by: kernel test robot <[email protected]> Reported-by: Julia Lawall <[email protected]> Closes: https://lore.kernel.org/r/[email protected]/ Signed-off-by: Damien Le Moal <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Christoph Hellwig <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'scripts/clang-tools/gen_compile_commands.py')
0 files changed, 0 insertions, 0 deletions