From patchwork Sun Jan 19 21:48:37 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Frank_Sch=C3=A4fer?= X-Patchwork-Id: 3510441 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 9BD299F2E9 for ; Sun, 19 Jan 2014 21:47:53 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C27D22010E for ; Sun, 19 Jan 2014 21:47:52 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 059D02010B for ; Sun, 19 Jan 2014 21:47:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752264AbaASVru (ORCPT ); Sun, 19 Jan 2014 16:47:50 -0500 Received: from mail-ee0-f45.google.com ([74.125.83.45]:50052 "EHLO mail-ee0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752185AbaASVrr (ORCPT ); Sun, 19 Jan 2014 16:47:47 -0500 Received: by mail-ee0-f45.google.com with SMTP id b15so3019431eek.4 for ; Sun, 19 Jan 2014 13:47:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; bh=kATnNstIhEmdDZyYv/0/4A82FTzSioHpaAwRWFBZ7II=; b=CDU+8bbc+Sry38sLnQu0/Hou8ceScEfxvQMz81nZeye3EZBn8jeQ3GK8qTjdnbtFrj +Qjz81u63aSK7is7Rcvg/Eq3+xWraN7tpiKJLdyCWhN3zfCduSTzuD3UaUVJ9wDlou9/ Uo59Jtx2MJTXFaMDFoF6yVgOCSJL5V5H3Lmh1xbd0GkUtk3dPKqEZKvMxiRBpPPW7vmE 8aTMRb+zRNQxeSiEziUqPWC4/Ts4Jw6Yh/QQ7z//u5UU0jiruOffOGceyZwxNyULNmmz bRxyTzo4UkISUi3Q2ofXjBxsQ+fqUlkQ/J2JQuj0v/vRlx5JfR6RgUsPmpoa3tLc70N4 68NA== X-Received: by 10.14.39.3 with SMTP id c3mr14600508eeb.4.1390168066353; Sun, 19 Jan 2014 13:47:46 -0800 (PST) Received: from Athlon64X2-5000.site (ip-178-201-83-195.unitymediagroup.de. [178.201.83.195]) by mx.google.com with ESMTPSA id j46sm47007878eew.18.2014.01.19.13.47.45 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 19 Jan 2014 13:47:45 -0800 (PST) From: =?UTF-8?q?Frank=20Sch=C3=A4fer?= To: m.chehab@samsung.com Cc: linux-media@vger.kernel.org, =?UTF-8?q?Frank=20Sch=C3=A4fer?= Subject: [PATCH 4/4] em28xx-i2c: remove duplicate error printing code from em28xx_i2c_xfer() Date: Sun, 19 Jan 2014 22:48:37 +0100 Message-Id: <1390168117-2925-5-git-send-email-fschaefer.oss@googlemail.com> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1390168117-2925-1-git-send-email-fschaefer.oss@googlemail.com> References: <1390168117-2925-1-git-send-email-fschaefer.oss@googlemail.com> MIME-Version: 1.0 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Spam-Status: No, score=-7.3 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Frank Schäfer --- drivers/media/usb/em28xx/em28xx-i2c.c | 11 +++-------- 1 Datei geändert, 3 Zeilen hinzugefügt(+), 8 Zeilen entfernt(-) diff --git a/drivers/media/usb/em28xx/em28xx-i2c.c b/drivers/media/usb/em28xx/em28xx-i2c.c index a26d7d4..1a514ca 100644 --- a/drivers/media/usb/em28xx/em28xx-i2c.c +++ b/drivers/media/usb/em28xx/em28xx-i2c.c @@ -535,14 +535,9 @@ static int em28xx_i2c_xfer(struct i2c_adapter *i2c_adap, * This code is only called during device probe. */ rc = i2c_check_for_device(i2c_bus, addr); - if (rc < 0) { - if (rc == -ENXIO) { - if (i2c_debug > 1) - printk(KERN_CONT " no device\n"); - } else { - if (i2c_debug > 1) - printk(KERN_CONT " ERROR: %i\n", rc); - } + if (rc == -ENXIO) { + if (i2c_debug > 1) + printk(KERN_CONT " no device\n"); rt_mutex_unlock(&dev->i2c_bus_lock); return rc; }