[media] dvb-core: don't clear stats at DTV_CLEAR
authorMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 20 Mar 2013 13:39:31 +0000 (10:39 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 21 Mar 2013 13:27:35 +0000 (10:27 -0300)
The stats are cleared by the frontend. Don't do it at DTV_CLEAR.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb-core/dvb_frontend.c

index eaa0a74e6a87a1917aaaabadca7f523d7c7452ba..57601c0704c1694637d4a8b15b3da1d1dc7bdb16 100644 (file)
@@ -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;