From patchwork Thu Jun 16 16:33:35 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg Dietsche X-Patchwork-Id: 888202 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.4) with ESMTP id p5GHQOPk024386 for ; Thu, 16 Jun 2011 17:26:24 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758184Ab1FPR0W (ORCPT ); Thu, 16 Jun 2011 13:26:22 -0400 Received: from que11.charter.net ([209.225.8.21]:34071 "EHLO que11.charter.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753192Ab1FPR0W (ORCPT ); Thu, 16 Jun 2011 13:26:22 -0400 Received: from imp11 ([10.20.200.11]) by mta11.charter.net (InterMail vM.7.09.02.04 201-2219-117-106-20090629) with ESMTP id <20110616163414.UONV4013.mta11.charter.net@imp11>; Thu, 16 Jun 2011 12:34:14 -0400 Received: from www.farmergreg.com ([96.42.32.177]) by imp11 with smtp.charter.net id wgaE1g00G3pHlLY05gaEWk; Thu, 16 Jun 2011 12:34:14 -0400 X-Authority-Analysis: v=1.1 cv=vT9vkN3vVXssH3Ov7r/wQUs/sfIFjNPEFFf4aeKIi4A= c=1 sm=1 a=QB0iu9eB4lQA:10 a=lDGNyK2vIvEA:10 a=xzrYXqw+0zwiO4gHSXHcAg==:17 a=Had1wJpl63WJCBWOwOwA:9 a=xzrYXqw+0zwiO4gHSXHcAg==:117 Received: from red.farmergreg.com ([10.0.0.50]) by www.farmergreg.com with esmtp (Exim 4.72) (envelope-from ) id 1QXFW8-00055I-Sp; Thu, 16 Jun 2011 11:34:04 -0500 Received: from greg by red.farmergreg.com with local (Exim 4.72) (envelope-from ) id 1QXFWA-0007Sr-GO; Thu, 16 Jun 2011 11:34:06 -0500 From: Greg Dietsche To: mchehab@infradead.org Cc: linux-media@vger.kernel.org, Greg Dietsche Subject: [PATCH] dvb: remove unnecessary code Date: Thu, 16 Jun 2011 11:33:35 -0500 Message-Id: <1308242015-28665-1-git-send-email-Gregory.Dietsche@cuw.edu> X-Mailer: git-send-email 1.7.2.5 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Thu, 16 Jun 2011 17:26:25 +0000 (UTC) remove unnecessary code that matches this coccinelle pattern if (...) return ret; return ret; Signed-off-by: Greg Dietsche --- drivers/media/dvb/frontends/cx24116.c | 6 +----- 1 files changed, 1 insertions(+), 5 deletions(-) diff --git a/drivers/media/dvb/frontends/cx24116.c b/drivers/media/dvb/frontends/cx24116.c index 95c6465..ccd0525 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,