From patchwork Mon Oct 17 22:12:08 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 101679 Delivered-To: patch@linaro.org Received: by 10.140.97.247 with SMTP id m110csp595786qge; Mon, 17 Oct 2016 15:12:45 -0700 (PDT) X-Received: by 10.67.1.70 with SMTP id be6mr2876948pad.29.1476742365528; Mon, 17 Oct 2016 15:12:45 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e6si27140977pab.8.2016.10.17.15.12.45; Mon, 17 Oct 2016 15:12:45 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-media-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-media-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-media-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758100AbcJQWMm (ORCPT + 4 others); Mon, 17 Oct 2016 18:12:42 -0400 Received: from mout.kundenserver.de ([212.227.126.131]:52536 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754082AbcJQWMl (ORCPT ); Mon, 17 Oct 2016 18:12:41 -0400 Received: from wuerfel.lan. ([78.43.20.153]) by mrelayeu.kundenserver.de (mreue004) with ESMTPA (Nemesis) id 0MJYNz-1byjFo1tHP-0034ZR; Tue, 18 Oct 2016 00:12:35 +0200 From: Arnd Bergmann To: Mauro Carvalho Chehab Cc: Linus Torvalds , linux-kernel@vger.kernel.org, Arnd Bergmann , Sean Young , linux-media@vger.kernel.org Subject: [PATCH 12/28] [media] rc: print correct variable for z8f0811 Date: Tue, 18 Oct 2016 00:12:08 +0200 Message-Id: <20161017221233.1826832-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 In-Reply-To: <20161017220342.1627073-1-arnd@arndb.de> References: <20161017220342.1627073-1-arnd@arndb.de> X-Provags-ID: V03:K0:icVWkyv+IBg2OKkglM0fT26G0HZh0dYy/eJtL2ZI1nhD0PnCD5c vm+UfQJFyyit8ZB4GbRjlk9hFPpoxV9ICsYffEpvVF95cbyrAt/jMCBQi7+d+Ka3k6eUj+m T0r53fIhgJlJgK5nZzmRzrMLcmBh2o84EHKKlQvgy0JO6UrQSZ8utl3yLULrtoDlRdCUGkV U38voFD+kCkC47T1e6fxw== X-UI-Out-Filterresults: notjunk:1; V01:K0:y9RZ01l0ReA=:uzu3yAGJ1CipYBbJTgfHde AaWFSy3u5eDyGyRl+L0wtLQtDSuDC2iywzxQ1oqBciGuI2OdhDWUYJgZmFUaG+TyUNS/ZUUc6 b3qH9rlF+0qgCw9LSYAQ4jaLhfotB00e4Qkx9OjSrst/SYbALF8mj6iwyTcj9lc7i7Xpldgxv voy1oF2mbTnDa8SRFzL8HI+QAdqham6AYFSAoU4oR7lGl54zviPm3AwwGGzDa+LzAm3ENxwAI qxQJ5FnbqkrOpok2Tl9EvbM4HlMh3I5A5kZjkFWkpUOJ4V4piMnPtBS7b6bGNfCWQFneoLFhq HVfXiE/lahxrGVN14xn6PPEYXzvoDVvgXFOM1SsdHV1/FfxlbA46z8h+WrlbTt1ZXba3DtiEd XFgJRBKSo07j5fYUcnknbhrEd4LJCAqTR4qghNDkHTC8N7ZgjwcysBiM8oHeB93G88bdwmsc+ k6VNpXfwMF132U0o4d0TIuuXxVXDLa6EpwRH24aIAyCleRcN0kcQEJ7RDok5nOF7qEuck9Kym VBMYfW7XWc8O8eStsy3jpvE5/tNvKNUWgz8buH+H5teZtIEKy8azIRBnv3u00XbrCypzffNVE UallQ9FAXSsJXwnkz1RCWt6Iau3eMM6WqgtiDGybd4fF0MIOhaDyBl+2H6n8IQprGCPvjrwgH GmqE8gAdX8jfjNjfZFw6ymylvL7EwTmhhrrSwEgQvW3p9V+wJm5MDoCRKBMu7cZZBwao= Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org A recent rework accidentally left a debugging printk untouched while changing the meaning of the variables, leading to an uninitialized variable being printed: drivers/media/i2c/ir-kbd-i2c.c: In function 'get_key_haup_common': drivers/media/i2c/ir-kbd-i2c.c:62:2: error: 'toggle' may be used uninitialized in this function [-Werror=maybe-uninitialized] This prints the correct one instead, as we did before the patch. Fixes: 00bb820755ed ("[media] rc: Hauppauge z8f0811 can decode RC6") Signed-off-by: Arnd Bergmann --- drivers/media/i2c/ir-kbd-i2c.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.9.0 -- 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 --git a/drivers/media/i2c/ir-kbd-i2c.c b/drivers/media/i2c/ir-kbd-i2c.c index f95a6bc..cede397 100644 --- a/drivers/media/i2c/ir-kbd-i2c.c +++ b/drivers/media/i2c/ir-kbd-i2c.c @@ -118,7 +118,7 @@ static int get_key_haup_common(struct IR_i2c *ir, enum rc_type *protocol, *protocol = RC_TYPE_RC6_MCE; dev &= 0x7f; dprintk(1, "ir hauppauge (rc6-mce): t%d vendor=%d dev=%d code=%d\n", - toggle, vendor, dev, code); + *ptoggle, vendor, dev, code); } else { *ptoggle = 0; *protocol = RC_TYPE_RC6_6A_32;