From patchwork Sat Jan 23 13:44:14 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?TsOpbWV0aCBNw6FydG9u?= X-Patchwork-Id: 2508 Return-path: Envelope-to: mchehab@infradead.org Delivery-date: Sat, 23 Jan 2010 13:44:21 +0000 Received: from bombadil.infradead.org [18.85.46.34] by pedra with IMAP (fetchmail-6.3.6) for (single-drop); Sat, 23 Jan 2010 11:47:07 -0200 (BRST) Received: from vger.kernel.org ([209.132.180.67]) by bombadil.infradead.org with esmtp (Exim 4.69 #1 (Red Hat Linux)) id 1NYgHl-0002Ia-Bf; Sat, 23 Jan 2010 13:44:21 +0000 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755521Ab0AWNoU (ORCPT + 1 other); Sat, 23 Jan 2010 08:44:20 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751649Ab0AWNoU (ORCPT ); Sat, 23 Jan 2010 08:44:20 -0500 Received: from mail01d.mail.t-online.hu ([84.2.42.6]:49594 "EHLO mail01d.mail.t-online.hu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932068Ab0AWNoR (ORCPT ); Sat, 23 Jan 2010 08:44:17 -0500 Received: from [192.168.1.67] (dsl51B659B2.pool.t-online.hu [81.182.89.178]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail01d.mail.t-online.hu (Postfix) with ESMTPSA id 064C875881B; Sat, 23 Jan 2010 14:41:40 +0100 (CET) Message-ID: <4B5AFD2E.4080202@freemail.hu> Date: Sat, 23 Jan 2010 14:44:14 +0100 From: =?UTF-8?B?TsOpbWV0aCBNw6FydG9u?= User-Agent: Mozilla/5.0 (X11; U; Linux i686; hu-HU; rv:1.8.1.21) Gecko/20090402 SeaMonkey/1.1.16 MIME-Version: 1.0 To: V4L Mailing List , mjpeg-users@lists.sourceforge.net Subject: [PATCH] zoran: remove variable shadowing X-DCC-mail.t-online.hu-Metrics: mail01d.mail.t-online.hu 32721; Body=2 Fuz1=2 Fuz2=2 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org From: Márton Németh The loop counter j is declared twice in function error_handler(). Remove the redundant declaration. This will remove the following sparse warning (see "make C=1"): * symbol 'j' shadows an earlier one Signed-off-by: Márton Németh --- -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff -r 2a50a0a1c951 linux/drivers/media/video/zoran/zoran_device.c --- a/linux/drivers/media/video/zoran/zoran_device.c Sat Jan 23 00:14:32 2010 -0200 +++ b/linux/drivers/media/video/zoran/zoran_device.c Sat Jan 23 10:47:27 2010 +0100 @@ -1229,7 +1230,7 @@ u32 astat, u32 stat) { - int i, j; + int i; /* This is JPEG error handling part */ if (zr->codec_mode != BUZ_MODE_MOTION_COMPRESS && @@ -1280,6 +1281,7 @@ /* Report error */ if (zr36067_debug > 1 && zr->num_errors <= 8) { long frame; + int j; frame = zr->jpg_pend[zr->jpg_dma_tail & BUZ_MASK_FRAME]; printk(KERN_ERR