]> git.karo-electronics.de Git - linux-beck.git/commitdiff
[media] drxk: get rid of some unused vars
authorMauro Carvalho Chehab <mchehab@redhat.com>
Sat, 27 Oct 2012 19:12:00 +0000 (16:12 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sun, 28 Oct 2012 09:38:43 +0000 (07:38 -0200)
drivers/media/dvb-frontends/drxk_hard.c:68:13: warning: 'IsA1WithPatchCode' defined but not used [-Wunused-function]
drivers/media/dvb-frontends/drxk_hard.c:73:13: warning: 'IsA1WithRomCode' defined but not used [-Wunused-function]

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

index fb23496cd65d2282bbeb605c38b7eb57dcf3b3cc..59382fbb3286b0e2ab676342cea82489fb9107e5 100644 (file)
@@ -65,16 +65,6 @@ static bool IsQAM(struct drxk_state *state)
            state->m_OperationMode == OM_QAM_ITU_C;
 }
 
-static bool IsA1WithPatchCode(struct drxk_state *state)
-{
-       return state->m_DRXK_A1_PATCH_CODE;
-}
-
-static bool IsA1WithRomCode(struct drxk_state *state)
-{
-       return state->m_DRXK_A1_ROM_CODE;
-}
-
 #define NOA1ROM 0
 
 #define DRXDAP_FASI_SHORT_FORMAT(addr) (((addr) & 0xFC30FF80) == 0)
@@ -720,11 +710,6 @@ static int init_state(struct drxk_state *state)
 
        state->m_bPowerDown = (ulPowerDown != 0);
 
-       state->m_DRXK_A1_PATCH_CODE = false;
-       state->m_DRXK_A1_ROM_CODE = false;
-       state->m_DRXK_A2_ROM_CODE = false;
-       state->m_DRXK_A3_ROM_CODE = false;
-       state->m_DRXK_A2_PATCH_CODE = false;
        state->m_DRXK_A3_PATCH_CODE = false;
 
        /* Init AGC and PGA parameters */
index 6bb9fc4a7b96cbeeb6a082503499fbff18feb4d2..d18a896a983542f13dccc4269db3478c4b5ea61e 100644 (file)
@@ -320,11 +320,7 @@ struct drxk_state {
 
        u8               *m_microcode;
        int               m_microcode_length;
-       bool              m_DRXK_A1_PATCH_CODE;
-       bool              m_DRXK_A1_ROM_CODE;
-       bool              m_DRXK_A2_ROM_CODE;
-       bool              m_DRXK_A3_ROM_CODE;
-       bool              m_DRXK_A2_PATCH_CODE;
+       bool              m_DRXK_A3_ROM_CODE;
        bool              m_DRXK_A3_PATCH_CODE;
 
        bool              m_rfmirror;