OSDN Git Service

[media] lbdt3306a: remove uneeded braces
authorMauro Carvalho Chehab <mchehab@osg.samsung.com>
Tue, 28 Oct 2014 14:07:52 +0000 (12:07 -0200)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Tue, 3 Mar 2015 13:34:14 +0000 (10:34 -0300)
WARNING: braces {} are not necessary for any arm of this statement
+ if (ret == 0) {
[...]
+ } else {
[...]

Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/dvb-frontends/lgdt3306a.c

index 38b64b2..9c80d4c 100644 (file)
@@ -1518,11 +1518,10 @@ static int lgdt3306a_read_status(struct dvb_frontend *fe, fe_status_t *status)
 
        if (fe->ops.tuner_ops.get_rf_strength) {
                ret = fe->ops.tuner_ops.get_rf_strength(fe, &strength);
-               if (ret == 0) {
+               if (ret == 0)
                        dbg_info("strength=%d\n", strength);
-               } else {
+               else
                        dbg_info("fe->ops.tuner_ops.get_rf_strength() failed\n");
-               }
        }
 
        *status = 0;