iommu/arm-smmu-v3: Assign boolean values to a bool variable
authorKaixu Xia <kaixuxia@tencent.com>
Sat, 7 Nov 2020 10:20:39 +0000 (18:20 +0800)
committerWill Deacon <will@kernel.org>
Tue, 10 Nov 2020 12:03:02 +0000 (12:03 +0000)
Fix the following coccinelle warnings:

./drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c:36:12-26: WARNING: Assignment of 0/1 to bool variable

Signed-off-by: Kaixu Xia <kaixuxia@tencent.com>
Link: https://lore.kernel.org/r/1604744439-6846-1-git-send-email-kaixuxia@tencent.com
Signed-off-by: Will Deacon <will@kernel.org>
drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c

index e634bbe605730dac055bd1fee7f7e4328fff258c..c9cafce518350c75e9ee7dd9521c0e821d9d2290 100644 (file)
@@ -33,7 +33,7 @@
 
 #include "arm-smmu-v3.h"
 
-static bool disable_bypass = 1;
+static bool disable_bypass = true;
 module_param(disable_bypass, bool, 0444);
 MODULE_PARM_DESC(disable_bypass,
        "Disable bypass streams such that incoming transactions from devices that are not attached to an iommu domain will report an abort back to the device and will not be allowed to pass through the SMMU.");