提交 80e3e532 编写于 作者: S Sachin Kamat 提交者: Dmitry Torokhov

Input: eeti_ts - remove redundant null check

'pdata' is already dereferenced earlier. Hence this check is
meaningless.
Signed-off-by: NSachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: NDmitry Torokhov <dmitry.torokhov@gmail.com>
上级 8efcc503
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册