summaryrefslogtreecommitdiff
path: root/drivers/scsi/ufs/ufshci.h
diff options
context:
space:
mode:
authorBart Van Assche <bvanassche@acm.org>2022-04-20 01:57:47 +0300
committerMartin K. Petersen <martin.petersen@oracle.com>2022-04-26 06:23:02 +0300
commita858af9a9e01972c33f61036a3de6f707184e51b (patch)
treebd94e34bc36e0e31d58912c317537bbe3d9ca027 /drivers/scsi/ufs/ufshci.h
parent51d1628fc4572705daabac18a7935b661baae1a0 (diff)
downloadlinux-a858af9a9e01972c33f61036a3de6f707184e51b.tar.xz
scsi: ufs: Simplify statements that return a boolean
Convert "if (expr) return true; else return false;" into "return expr;" if either 'expr' is a boolean expression or the return type of the function is 'bool'. Link: https://lore.kernel.org/r/20220419225811.4127248-5-bvanassche@acm.org Tested-by: Bean Huo <beanhuo@micron.com> Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org> Reviewed-by: Keoseong Park <keosung.park@samsung.com> Reviewed-by: Bean Huo <beanhuo@micron.com> Signed-off-by: Bart Van Assche <bvanassche@acm.org> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/ufs/ufshci.h')
0 files changed, 0 insertions, 0 deletions