Преглед на файлове

msm: ipa: Fix compilation error

Change the syntax of condition to fix compilation error.

Signed-off-by: Rishabh Garg <[email protected]>
Rishabh Garg преди 4 години
родител
ревизия
e6060ecc44
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      drivers/platform/msm/ipa/ipa_v3/ipa_hw_stats.c

+ 1 - 1
drivers/platform/msm/ipa/ipa_v3/ipa_hw_stats.c

@@ -2248,7 +2248,7 @@ static ssize_t ipa_debugfs_enable_disable_drop_stats(struct file *file,
 	ssize_t ret;
 	ssize_t ret;
 
 
 	mutex_lock(&ipa3_ctx->lock);
 	mutex_lock(&ipa3_ctx->lock);
-	if (sizeof(dbg_buff) < count + 1) {
+	if (count >= sizeof(dbg_buff)) {
 		ret = -EFAULT;
 		ret = -EFAULT;
 		goto bail;
 		goto bail;
 	}
 	}