Assign true or false to boolean variables instead of an integer value.
This issue was detected with the help of Coccinelle.
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
        switch (usage->hid) {
        case 0xff000001:
                /* Tag indicating the start of a multitouch group */
-               nd->reading_mt = 1;
-               nd->first_contact_touch = 0;
+               nd->reading_mt = true;
+               nd->first_contact_touch = false;
                break;
        case HID_DG_TIPSWITCH:
                nd->tipswitch = value;
                         * even if deactivation slack is turned off.
                         */
                        nd->act_state = deactivate_slack - 1;
-                       nd->confidence = 0;
+                       nd->confidence = false;
                        break;
                }
 
                         */
                        if (nd->w < nd->min_width ||
                            nd->h < nd->min_height)
-                               nd->confidence = 0;
+                               nd->confidence = false;
                } else
                        break;
 
                if (!nd->reading_mt) /* Just to be sure */
                        break;
 
-               nd->reading_mt = 0;
+               nd->reading_mt = false;
 
 
                /*
                return -ENOMEM;
        }
 
-       nd->reading_mt = 0;
+       nd->reading_mt = false;
        nd->min_width = 0;
        nd->min_height = 0;
        nd->activate_slack = activate_slack;