Skip to content

Commit

Permalink
Input: eeti_ts - remove redundant null check
Browse files Browse the repository at this point in the history
'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>
  • Loading branch information
Sachin Kamat authored and Dmitry Torokhov committed Mar 31, 2013
1 parent 8efcc50 commit 80e3e53
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/input/touchscreen/eeti_ts.c
Original file line number Diff line number Diff line change
Expand Up @@ -206,8 +206,7 @@ static int eeti_ts_probe(struct i2c_client *client,
if (err < 0)
goto err1;

if (pdata)
priv->irq_active_high = pdata->irq_active_high;
priv->irq_active_high = pdata->irq_active_high;

irq_flags = priv->irq_active_high ?
IRQF_TRIGGER_RISING : IRQF_TRIGGER_FALLING;
Expand Down

0 comments on commit 80e3e53

Please sign in to comment.