[media] dvb_frontend: fix compiler warning
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>
This commit is contained in:
committed by
Mauro Carvalho Chehab
parent
4da2876614
commit
c065f5b4ee
@@ -148,7 +148,7 @@ static int dtv_property_legacy_params_sync(struct dvb_frontend *fe,
|
|||||||
|
|
||||||
static bool has_get_frontend(struct dvb_frontend *fe)
|
static bool has_get_frontend(struct dvb_frontend *fe)
|
||||||
{
|
{
|
||||||
return fe->ops.get_frontend;
|
return fe->ops.get_frontend != NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Reference in New Issue
Block a user