From: Greg Dietsche Date: Thu, 16 Jun 2011 16:33:35 +0000 (-0300) Subject: [media] dvb: remove unnecessary code X-Git-Tag: MMI-PSA29.97-13-9~18729^2~273 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=3735edf9fd8bfa6e31025a7cc73447516278000b;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git [media] dvb: remove unnecessary code remove unnecessary code that matches this coccinelle pattern if (...) return ret; return ret; Signed-off-by: Greg Dietsche Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/dvb/frontends/cx24116.c b/drivers/media/dvb/frontends/cx24116.c index 95c6465b87a1..ccd05255d527 100644 --- a/drivers/media/dvb/frontends/cx24116.c +++ b/drivers/media/dvb/frontends/cx24116.c @@ -1452,11 +1452,7 @@ tuned: /* Set/Reset B/W */ cmd.args[0x00] = CMD_BANDWIDTH; cmd.args[0x01] = 0x00; cmd.len = 0x02; - ret = cx24116_cmd_execute(fe, &cmd); - if (ret != 0) - return ret; - - return ret; + return cx24116_cmd_execute(fe, &cmd); } static int cx24116_tune(struct dvb_frontend *fe, struct dvb_frontend_parameters *params,