Skip to content

Commit

Permalink
[media] dvb-core: don't clear stats at DTV_CLEAR
Browse files Browse the repository at this point in the history
The stats are cleared by the frontend. Don't do it at DTV_CLEAR.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Mauro Carvalho Chehab committed Mar 21, 2013
1 parent 340e769 commit 808d24d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/media/dvb-core/dvb_frontend.c
Original file line number Diff line number Diff line change
Expand Up @@ -920,7 +920,7 @@ static int dvb_frontend_clear_cache(struct dvb_frontend *fe)
u32 delsys;

delsys = c->delivery_system;
memset(c, 0, sizeof(struct dtv_frontend_properties));
memset(c, 0, offsetof(struct dtv_frontend_properties, strength));
c->delivery_system = delsys;

c->state = DTV_CLEAR;
Expand Down

0 comments on commit 808d24d

Please sign in to comment.