iommu: arm-smmu: use bitwise operator instead of logical
A logical and ('&&') has been used instead of a bitwise and ('&')
in (smmu->options && ARM_SMMU_OPT_SKIP_INIT), so replace it with
bitwise and.
Change-Id: I52eab6674403c3f59aacbf4e07832b8b2354b71d
Signed-off-by: Vijayanand Jitta <vjitta@codeaurora.org>
diff --git a/drivers/iommu/arm-smmu.c b/drivers/iommu/arm-smmu.c
index 491f9d7..de05de4 100644
--- a/drivers/iommu/arm-smmu.c
+++ b/drivers/iommu/arm-smmu.c
@@ -638,7 +638,7 @@
} while (arm_smmu_options[++i].opt);
if (arm_smmu_opt_hibernation(smmu) &&
- smmu->options && ARM_SMMU_OPT_SKIP_INIT) {
+ (smmu->options & ARM_SMMU_OPT_SKIP_INIT)) {
dev_info(smmu->dev,
"Disabling incompatible option: skip-init\n");
smmu->options &= ~ARM_SMMU_OPT_SKIP_INIT;