diff options
author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2012-04-21 01:33:09 -0400 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2012-04-21 02:07:39 -0400 |
commit | bcad87bd92f4331d4422c1afd571e66f7f5c95d6 (patch) | |
tree | 9a27857c2e3fcaa217c7cada459dc2dbc81c1c30 /drivers/input | |
parent | b83643ebf2242388585e95c9a8d2353745d77cfd (diff) |
Input: cma3000-d0x - remove unneeded checks
data->mode is unsigned and can not be less than 0.
Reported-by: Werner <w.landgraf@ru.ru>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'drivers/input')
-rw-r--r-- | drivers/input/misc/cma3000_d0x.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/misc/cma3000_d0x.c b/drivers/input/misc/cma3000_d0x.c index 06517e60e50c..a3735a01e9fd 100644 --- a/drivers/input/misc/cma3000_d0x.c +++ b/drivers/input/misc/cma3000_d0x.c | |||
@@ -318,7 +318,7 @@ struct cma3000_accl_data *cma3000_init(struct device *dev, int irq, | |||
318 | mutex_init(&data->mutex); | 318 | mutex_init(&data->mutex); |
319 | 319 | ||
320 | data->mode = pdata->mode; | 320 | data->mode = pdata->mode; |
321 | if (data->mode < CMAMODE_DEFAULT || data->mode > CMAMODE_POFF) { | 321 | if (data->mode > CMAMODE_POFF) { |
322 | data->mode = CMAMODE_MOTDET; | 322 | data->mode = CMAMODE_MOTDET; |
323 | dev_warn(dev, | 323 | dev_warn(dev, |
324 | "Invalid mode specified, assuming Motion Detect\n"); | 324 | "Invalid mode specified, assuming Motion Detect\n"); |