From patchwork Sun Nov 7 13:57:13 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthias Schwarzott X-Patchwork-Id: 306832 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id oA7E0Ot7006867 for ; Sun, 7 Nov 2010 14:00:24 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752922Ab0KGOAR (ORCPT ); Sun, 7 Nov 2010 09:00:17 -0500 Received: from smtp.gentoo.org ([140.211.166.183]:57022 "EHLO smtp.gentoo.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752902Ab0KGOAQ (ORCPT ); Sun, 7 Nov 2010 09:00:16 -0500 Received: from gauss.localnet (ppp-88-217-108-154.dynamic.mnet-online.de [88.217.108.154]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPSA id BC2EB1B4166; Sun, 7 Nov 2010 14:00:15 +0000 (UTC) From: Matthias Schwarzott To: Malcolm Priestley Subject: [PATCH] IX2505V: i2c transfer error code ignored Date: Sun, 7 Nov 2010 14:57:13 +0100 User-Agent: KMail/1.13.5 (Linux/2.6.35-tuxonice-r7; KDE/4.5.3; x86_64; ; ) Cc: linux-media@vger.kernel.org MIME-Version: 1.0 Message-Id: <201011071457.14929.zzam@gentoo.org> 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.3 (demeter1.kernel.org [140.211.167.41]); Sun, 07 Nov 2010 14:00:24 +0000 (UTC) diff --git a/drivers/media/dvb/frontends/ix2505v.c b/drivers/media/dvb/frontends/ix2505v.c index 55f2eba..6360c68 100644 --- a/drivers/media/dvb/frontends/ix2505v.c +++ b/drivers/media/dvb/frontends/ix2505v.c @@ -72,7 +72,7 @@ static int ix2505v_read_status_reg(struct ix2505v_state *state) ret = i2c_transfer(state->i2c, msg, 1); deb_i2c("Read %s ", __func__); - return (ret = 1) ? (int) b2[0] : -1; + return (ret == 1) ? (int) b2[0] : -1; } static int ix2505v_write(struct ix2505v_state *state, u8 buf[], u8 count)