ion_dev: fix detects in ion_dev
authorbinqi.zhang <binqi.zhang@amlogic.com>
Tue, 25 Sep 2018 09:01:51 +0000 (17:01 +0800)
committerJianxin Pan <jianxin.pan@amlogic.com>
Fri, 28 Sep 2018 05:14:18 +0000 (22:14 -0700)
PD#166793: SWPL-198 Coverity for ion

Change-Id: I0f327888fc3fbb0247e489b8da9d1bc3dce03c23
Signed-off-by: binqi.zhang <binqi.zhang@amlogic.com>
drivers/amlogic/media/common/ion_dev/dev_ion.c

index 50fb98f..e740dc7 100644 (file)
@@ -32,13 +32,13 @@ MODULE_DESCRIPTION("AMLOGIC ION driver");
 MODULE_LICENSE("GPL");
 MODULE_AUTHOR("Amlogic SH");
 
-static unsigned int debug = 1;
+static unsigned int debug = 2;
 module_param(debug, uint, 0644);
 MODULE_PARM_DESC(debug, "activates debug info");
 
 #define dprintk(level, fmt, arg...)             \
        do {                                        \
-               if (debug >= level)                     \
+               if (debug > level)                     \
                        pr_debug("ion-dev: " fmt, ## arg);  \
        } while (0)