summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/iommu/arm-smmu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iommu/arm-smmu.c b/drivers/iommu/arm-smmu.c
index dbcd801ac..a629e7a4b 100644
--- a/drivers/iommu/arm-smmu.c
+++ b/drivers/iommu/arm-smmu.c
@@ -3020,7 +3020,7 @@ static int debug_smmu_id_debugfs_set(void *data, u64 val)
3020{ 3020{
3021 struct arm_smmu_device *smmu = (struct arm_smmu_device *)data; 3021 struct arm_smmu_device *smmu = (struct arm_smmu_device *)data;
3022 3022
3023 if (val < 0 || val >= smmu->num_smmus) 3023 if (val >= smmu->num_smmus)
3024 return -EINVAL; 3024 return -EINVAL;
3025 3025
3026 debug_smmu_id = (s8)val; 3026 debug_smmu_id = (s8)val;