From: Michael Ira Krufky Date: Sun, 3 Aug 2014 18:18:23 +0000 (-0300) Subject: [media] lgdt3306a: fix ERROR: do not use assignment in if condition X-Git-Tag: v4.1-rc1~59^2~1^2~316 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=ae21e447773f17b61014c286ed5e0fc3db874df6;p=karo-tx-linux.git [media] lgdt3306a: fix ERROR: do not use assignment in if condition Just CodingStyle fix. Signed-off-by: Michael Ira Krufky Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/dvb-frontends/lgdt3306a.c b/drivers/media/dvb-frontends/lgdt3306a.c index 3451e77a2771..91d986297e02 100644 --- a/drivers/media/dvb-frontends/lgdt3306a.c +++ b/drivers/media/dvb-frontends/lgdt3306a.c @@ -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;