Commit bcad87bd authored by Dmitry Torokhov's avatar Dmitry Torokhov

Input: cma3000-d0x - remove unneeded checks

data->mode is unsigned and can not be less than 0.
Reported-by: default avatarWerner <w.landgraf@ru.ru>
Signed-off-by: default avatarDmitry Torokhov <dtor@mail.ru>
parent b83643eb
......@@ -318,7 +318,7 @@ struct cma3000_accl_data *cma3000_init(struct device *dev, int irq,
mutex_init(&data->mutex);
data->mode = pdata->mode;
if (data->mode < CMAMODE_DEFAULT || data->mode > CMAMODE_POFF) {
if (data->mode > CMAMODE_POFF) {
data->mode = CMAMODE_MOTDET;
dev_warn(dev,
"Invalid mode specified, assuming Motion Detect\n");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment