summaryrefslogtreecommitdiffstats
path: root/drivers/char/hpet.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/char/hpet.c')
-rw-r--r--drivers/char/hpet.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/hpet.c b/drivers/char/hpet.c
index e3c7c0096e1..85d39ff286c 100644
--- a/drivers/char/hpet.c
+++ b/drivers/char/hpet.c
@@ -519,7 +519,7 @@ hpet_ioctl_common(struct hpet_dev *devp, int cmd, unsigned long arg, int kernel)
break;
}
- if (!arg || (arg & (arg - 1))) {
+ if (!arg) {
err = -EINVAL;
break;
}