Skip to content

Commit

Permalink
[media] dvb: remove unnecessary code
Browse files Browse the repository at this point in the history
remove unnecessary code that matches this coccinelle pattern
	if (...)
		return ret;
	return ret;

Signed-off-by: Greg Dietsche <Gregory.Dietsche@cuw.edu>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Greg Dietsche authored and Mauro Carvalho Chehab committed Jul 27, 2011
1 parent fe45e25 commit 3735edf
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions drivers/media/dvb/frontends/cx24116.c
Original file line number Diff line number Diff line change
Expand Up @@ -1452,11 +1452,7 @@ static int cx24116_set_frontend(struct dvb_frontend *fe,
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,
Expand Down

0 comments on commit 3735edf

Please sign in to comment.