Skip to content

Commit

Permalink
[media] dvb_frontend: fix compiler warning
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Hans Petter Selasky authored and Mauro Carvalho Chehab committed Apr 9, 2012
1 parent 4da2876 commit c065f5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/media/dvb/dvb-core/dvb_frontend.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

/*
Expand Down

0 comments on commit c065f5b

Please sign in to comment.