Skip to contentSkip to conversation

v4l: fix handling of tea5761_autodetection return value

PATCH New Marcin Slusarz 1 participant 1 message May 11, 2008 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 v4l: fix handling of tea5761_autodetection return value

tea5761_autodetection returns -EINVAL on error

Cc Mauro Carvalho Chehab <[email protected]>

---
compile tested only

---
 drivers/media/common/tuners/tea5761.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/media/common/tuners/tea5761.c +1 -1
@@ -295,7 +295,7 @@ struct dvb_frontend *tea5761_attach(struct dvb_frontend *fe,
 {
 	struct tea5761_priv *priv = NULL;
 
-	if (tea5761_autodetection(i2c_adap, i2c_addr) == EINVAL)
+	if (tea5761_autodetection(i2c_adap, i2c_addr) != 0)
 		return NULL;
 
 	priv = kzalloc(sizeof(struct tea5761_priv), GFP_KERNEL);