V4L/DVB (7086): driver: tcm825x - fix logical typo error

This patch does fix potential NULL pointer dereference
due to logical typo error.

The issue is pointed out by
Guennadi Liakhovetski <g.liakhovetski@pengutronix.de>


Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
CC: Sakari Ailus <sakari.ailus@nokia.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
This commit is contained in:
Cyrill Gorcunov 2008-01-26 07:38:01 -03:00 committed by Mauro Carvalho Chehab
parent 29e4e05041
commit 0ed464e13e
1 changed files with 1 additions and 1 deletions

View File

@ -851,7 +851,7 @@ static int tcm825x_probe(struct i2c_client *client)
sensor->platform_data = client->dev.platform_data; sensor->platform_data = client->dev.platform_data;
if (sensor->platform_data == NULL if (sensor->platform_data == NULL
&& !sensor->platform_data->is_okay()) || !sensor->platform_data->is_okay())
return -ENODEV; return -ENODEV;
sensor->v4l2_int_device = &tcm825x_int_device; sensor->v4l2_int_device = &tcm825x_int_device;