From patchwork Sun Nov 9 17:04:42 2008 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jesper Juhl X-Patchwork-Id: 1588431 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id C22C93FCFC for ; Fri, 12 Oct 2012 22:24:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752589Ab2JLWY6 (ORCPT ); Fri, 12 Oct 2012 18:24:58 -0400 Received: from 1010ds2-suoe.0.fullrate.dk ([90.184.90.115]:27861 "EHLO swampdragon.chaosbits.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751159Ab2JLWY5 (ORCPT ); Fri, 12 Oct 2012 18:24:57 -0400 X-Greylist: delayed 379 seconds by postgrey-1.27 at vger.kernel.org; Fri, 12 Oct 2012 18:24:57 EDT Received: by swampdragon.chaosbits.net (Postfix, from userid 1000) id A694D9403D; Sun, 9 Nov 2008 18:04:42 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by swampdragon.chaosbits.net (Postfix) with ESMTP id 7D8FB9403B; Sun, 9 Nov 2008 18:04:42 +0100 (CET) Date: Sun, 9 Nov 2008 18:04:42 +0100 (CET) From: Jesper Juhl To: Mauro Carvalho Chehab cc: linux-media@vger.kernel.org, Ezequiel Garcia , linux-kernel@vger.kernel.org Subject: [PATCH] [media] stk1160: Remove dead code from stk1160_i2c_read_reg() Message-ID: User-Agent: Alpine 2.00 (LNX 1167 2008-08-23) MIME-Version: 1.0 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org There are two checks for 'rc' being less than zero with no change to 'rc' between the two, so the second is just dead code - remove it. Signed-off-by: Jesper Juhl --- drivers/media/usb/stk1160/stk1160-i2c.c | 3 --- 1 files changed, 0 insertions(+), 3 deletions(-) diff --git a/drivers/media/usb/stk1160/stk1160-i2c.c b/drivers/media/usb/stk1160/stk1160-i2c.c index 176ac93..035cf8c 100644 --- a/drivers/media/usb/stk1160/stk1160-i2c.c +++ b/drivers/media/usb/stk1160/stk1160-i2c.c @@ -117,9 +117,6 @@ static int stk1160_i2c_read_reg(struct stk1160 *dev, u8 addr, return rc; stk1160_read_reg(dev, STK1160_SBUSR_RD, value); - if (rc < 0) - return rc; - return 0; }