[media] lgdt3306a: fix ERROR: do not use assignment in if condition
authorMichael Ira Krufky <mkrufky@linuxtv.org>
Sun, 3 Aug 2014 18:18:23 +0000 (15:18 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Tue, 3 Mar 2015 13:34:09 +0000 (10:34 -0300)
Just CodingStyle fix.

Signed-off-by: Michael Ira Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/dvb-frontends/lgdt3306a.c

index 3451e77a277194bca4bd39706239d34cf4bbb232..91d986297e02aa553be60e5643c7bbfa1ad942fc 100644 (file)
@@ -1600,7 +1600,8 @@ static int lgdt3306a_tune(struct dvb_frontend *fe, bool re_tune, unsigned int mo
 
        if (re_tune) {
                state->current_frequency = -1; /* force re-tune */
-               if ((ret = lgdt3306a_set_parameters(fe)) != 0)
+               ret = lgdt3306a_set_parameters(fe);
+               if (ret != 0)
                        return ret;
        }
        *delay = 125;