From patchwork Fri Nov 20 18:34:13 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roel Kluin X-Patchwork-Id: 61700 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id nAKIM01R020089 for ; Fri, 20 Nov 2009 18:22:00 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754753AbZKTSVX (ORCPT ); Fri, 20 Nov 2009 13:21:23 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754004AbZKTSVX (ORCPT ); Fri, 20 Nov 2009 13:21:23 -0500 Received: from ey-out-2122.google.com ([74.125.78.26]:63438 "EHLO ey-out-2122.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754662AbZKTSVW (ORCPT ); Fri, 20 Nov 2009 13:21:22 -0500 Received: by ey-out-2122.google.com with SMTP id 4so437403eyf.19 for ; Fri, 20 Nov 2009 10:21:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:content-type :content-transfer-encoding; bh=lA2pohvF8/g3v3c59WUkQGl5OMCKFukTVbQHvuwyqBI=; b=oe2wVT6nAjxvtDP+cditZEx6qIlfAY0GO+cP1bH+fRs7iE/mQNL/fdYduxY66UuA+A 254oxO3wIlKCyI50iq7w27N5K5Bb0AnBUFmg2BA3vIryZXVVz7sQB7+j9/2pjBXq/b3d DfFhvpp+9SATfLs49weC5HmySSgIShG3J0TdM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; b=qowA/KbD2UYPxWpFGp/+62vdhxNQ89h0zD4qCNIbzPkfrQ0n7FOZ0kd6cQWmYeSGXp v/0bOGSw7qRpcj4tFrHKnzAbECcBeV8UI8FkdOOtl2t4kmk2JWvINgtFxcKp82nMBHBw u1TRSW+RTKnrViEqlaqeMWjcm5+7v9f3Pckr4= Received: by 10.213.23.76 with SMTP id q12mr474859ebb.83.1258741287824; Fri, 20 Nov 2009 10:21:27 -0800 (PST) Received: from zoinx.mars (d133062.upc-d.chello.nl [213.46.133.62]) by mx.google.com with ESMTPS id 5sm435992eyh.40.2009.11.20.10.21.26 (version=SSLv3 cipher=RC4-MD5); Fri, 20 Nov 2009 10:21:27 -0800 (PST) Message-ID: <4B06E125.6090305@gmail.com> Date: Fri, 20 Nov 2009 19:34:13 +0100 From: Roel Kluin User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.4pre) Gecko/20091014 Fedora/3.0-2.8.b4.fc11 Thunderbird/3.0b4 MIME-Version: 1.0 To: Mauro Carvalho Chehab , linux-media@vger.kernel.org, Andrew Morton , LKML , mkrufky@linuxtv.org Subject: [PATCH] V4L/DVB: Fix test in copy_reg_bits() Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org diff --git a/drivers/media/common/tuners/mxl5007t.c b/drivers/media/common/tuners/mxl5007t.c index 2d02698..7eb1bf7 100644 --- a/drivers/media/common/tuners/mxl5007t.c +++ b/drivers/media/common/tuners/mxl5007t.c @@ -196,7 +196,7 @@ static void copy_reg_bits(struct reg_pair_t *reg_pair1, i = j = 0; while (reg_pair1[i].reg || reg_pair1[i].val) { - while (reg_pair2[j].reg || reg_pair2[j].reg) { + while (reg_pair2[j].reg || reg_pair2[j].val) { if (reg_pair1[i].reg != reg_pair2[j].reg) { j++; continue;