[media] dvb_frontend: fix compiler warning
authorHans Petter Selasky <hselasky@c2i.net>
Tue, 27 Mar 2012 15:53:19 +0000 (12:53 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 9 Apr 2012 12:42:11 +0000 (09:42 -0300)
has_get_frontend() should return a boolean, not a pointer.

Signed-off-by: Hans Petter Selasky <hselasky@c2i.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb/dvb-core/dvb_frontend.c

index e721975476b04c8e510848f79b88386373a39d2f..39696c6a4ed750d91b44c3291ed2eda0f9b0b4d0 100644 (file)
@@ -148,7 +148,7 @@ static int dtv_property_legacy_params_sync(struct dvb_frontend *fe,
 
 static bool has_get_frontend(struct dvb_frontend *fe)
 {
-       return fe->ops.get_frontend;
+       return fe->ops.get_frontend != NULL;
 }
 
 /*