scsi: target: Simplify bool conversion
Subsystems (2)
PATCH 1/1 scsi: target: Simplify bool conversion
./drivers/target/target_core_iblock.c:892:30-35: WARNING: conversion to bool not needed here
Reported-by Abaci Robot <[email protected]>
Signed-off-by Yang Li <[email protected]>
--- drivers/target/target_core_iblock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/target/target_core_iblock.c +1 -1
@@ -889,7 +889,7 @@ static sense_reason_t iblock_execute_pr_out(struct se_cmd *cmd, u8 sa, u64 key, ret = ops->pr_preempt (bdev, key, sa_key,scsi_pr_type_to_block (type), - sa ==PRO_PREEMPT ? false : true); + sa !=PRO_PREEMPT );break ;case PRO_RELEASE :if (!ops->pr_clear) {
Signature · 1 line
2.20.1.7.g153144c