From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756393AbYBIEoO (ORCPT ); Fri, 8 Feb 2008 23:44:14 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754180AbYBIEn6 (ORCPT ); Fri, 8 Feb 2008 23:43:58 -0500 Received: from sj-iport-1.cisco.com ([171.71.176.70]:31352 "EHLO sj-iport-1.cisco.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753964AbYBIEn5 (ORCPT ); Fri, 8 Feb 2008 23:43:57 -0500 To: Dmitry Torokhov Cc: akpm@linux-foundation.org, linux-kernel@vger.kernel.org Subject: [PATCH] Input: i8042 - X-Message-Flag: Warning: May contain useful information From: Roland Dreier Date: Fri, 08 Feb 2008 20:43:54 -0800 Message-ID: User-Agent: Gnus/5.1008 (Gnus v5.10.8) XEmacs/21.4.21 (linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-OriginalArrivalTime: 09 Feb 2008 04:43:55.0351 (UTC) FILETIME=[606F4670:01C86AD6] Authentication-Results: sj-dkim-4; header.From=rdreier@cisco.com; dkim=pass ( sig from cisco.com/sjdkim4002 verified; ); Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit c18bab80 ("Input: i8042 - non-x86 build fix") introduced the following warning on non-x86 builds: drivers/input/serio/i8042.c: In function 'i8042_probe': drivers/input/serio/i8042.c:1154: warning: unused variable 'param' Fix this by moving the parameter variable declaration into the #ifdef too. Signed-off-by: Roland Dreier --- diff --git a/drivers/input/serio/i8042.c b/drivers/input/serio/i8042.c index 2763394..65a74cf 100644 --- a/drivers/input/serio/i8042.c +++ b/drivers/input/serio/i8042.c @@ -1151,7 +1151,6 @@ static int __devinit i8042_setup_kbd(void) static int __devinit i8042_probe(struct platform_device *dev) { int error; - char param; error = i8042_controller_selftest(); if (error) @@ -1174,7 +1173,7 @@ static int __devinit i8042_probe(struct platform_device *dev) } #ifdef CONFIG_X86 if (i8042_dritek) { - param = 0x90; + char param = 0x90; error = i8042_command(¶m, 0x1059); if (error) goto out_fail;