diff --git a/drivers/input/misc/hbtp_input.c b/drivers/input/misc/hbtp_input.c index 2fe56ff541a3..9f5fd6586e54 100644 --- a/drivers/input/misc/hbtp_input.c +++ b/drivers/input/misc/hbtp_input.c @@ -588,8 +588,8 @@ static int hbtp_parse_dt(struct device *dev) * Desired max X should be defined simultaneously, or none * of them should be defined. */ - if (!((hbtp->def_maxy == 0 && hbtp->des_maxy != 0) || - (hbtp->def_maxy != 0 && hbtp->des_maxy == 0))) { + if ((hbtp->def_maxy == 0 && hbtp->des_maxy != 0) || + (hbtp->def_maxy != 0 && hbtp->des_maxy == 0)) { dev_err(dev, "default or desired max-Y properties are incorrect\n"); return -EINVAL; }