diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2013-03-28 04:14:46 -0400 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2013-03-31 03:22:27 -0400 |
commit | 80e3e5328a9978fae3654ead657e9df653508713 (patch) | |
tree | 8c1b8411cf56a2e3cd8367969c4104af1400ab74 /drivers/input | |
parent | 8efcc503231dd50800f874725961dfdae5f08f52 (diff) |
Input: eeti_ts - remove redundant null check
'pdata' is already dereferenced earlier. Hence this check is
meaningless.
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input')
-rw-r--r-- | drivers/input/touchscreen/eeti_ts.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/input/touchscreen/eeti_ts.c b/drivers/input/touchscreen/eeti_ts.c index 55255a940072..8fe5086c8d2e 100644 --- a/drivers/input/touchscreen/eeti_ts.c +++ b/drivers/input/touchscreen/eeti_ts.c | |||
@@ -206,8 +206,7 @@ static int eeti_ts_probe(struct i2c_client *client, | |||
206 | if (err < 0) | 206 | if (err < 0) |
207 | goto err1; | 207 | goto err1; |
208 | 208 | ||
209 | if (pdata) | 209 | priv->irq_active_high = pdata->irq_active_high; |
210 | priv->irq_active_high = pdata->irq_active_high; | ||
211 | 210 | ||
212 | irq_flags = priv->irq_active_high ? | 211 | irq_flags = priv->irq_active_high ? |
213 | IRQF_TRIGGER_RISING : IRQF_TRIGGER_FALLING; | 212 | IRQF_TRIGGER_RISING : IRQF_TRIGGER_FALLING; |