Skip to content

Commit

Permalink
[media] drxk: get rid of some unused vars
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Mauro Carvalho Chehab committed Oct 28, 2012
1 parent 31becf0 commit 5a70972
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 20 deletions.
15 changes: 0 additions & 15 deletions drivers/media/dvb-frontends/drxk_hard.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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 */
Expand Down
6 changes: 1 addition & 5 deletions drivers/media/dvb-frontends/drxk_hard.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 5a70972

Please sign in to comment.