V4L/DVB (9460): Code Simplification
authorManu Abraham <abraham.manu@gmail.com>
Sat, 1 Mar 2008 16:54:28 +0000 (13:54 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 29 Dec 2008 19:53:23 +0000 (17:53 -0200)
Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb/frontends/stb0899_drv.c

index 60a5c9a2f69ad739257e9e32bed3e77383572bf2..deeec34fc47ace678a84289d3a9f01cc36ef9252 100644 (file)
@@ -1537,20 +1537,18 @@ static enum dvbfe_search stb0899_search(struct dvb_frontend *fe, struct dvbfe_pa
 
        u32 SearchRange, gain;
 
+       i_params->freq  = params->frequency;
        switch (state->delsys) {
        case DVBFE_DELSYS_DVBS:
                dprintk(verbose, FE_ERROR, 1, "set DVB-S params");
-               i_params->freq  = params->frequency;
                i_params->srate = params->delsys.dvbs.symbol_rate;
                break;
        case DVBFE_DELSYS_DSS:
                dprintk(verbose, FE_ERROR, 1, "set DSS params");
-               i_params->freq  = params->frequency;
                i_params->srate = params->delsys.dss.symbol_rate;
                break;
        case DVBFE_DELSYS_DVBS2:
                dprintk(verbose, FE_ERROR, 1, "set DVB-S2 params");
-               i_params->freq  = params->frequency;
                i_params->srate = params->delsys.dvbs2.symbol_rate;
                break;
        default: