diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2013-03-20 10:39:31 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2013-03-21 10:27:35 -0300 |
commit | 808d24d6c0b5c30c8f804b251caf476ea63954ef (patch) | |
tree | 495f4f0d63475131f18ad264248b88d337730c6d /drivers/media | |
parent | 340e76965c868caa645268d2d36edb89af801fa4 (diff) | |
download | blackbird-op-linux-808d24d6c0b5c30c8f804b251caf476ea63954ef.tar.gz blackbird-op-linux-808d24d6c0b5c30c8f804b251caf476ea63954ef.zip |
[media] dvb-core: don't clear stats at DTV_CLEAR
The stats are cleared by the frontend. Don't do it at DTV_CLEAR.
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media')
-rw-r--r-- | drivers/media/dvb-core/dvb_frontend.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/dvb-core/dvb_frontend.c b/drivers/media/dvb-core/dvb_frontend.c index eaa0a74e6a87..57601c0704c1 100644 --- a/drivers/media/dvb-core/dvb_frontend.c +++ b/drivers/media/dvb-core/dvb_frontend.c @@ -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; |