From patchwork Mon Jan 25 15:30:41 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 101133 Delivered-To: patch@linaro.org Received: by 10.112.130.2 with SMTP id oa2csp1426111lbb; Mon, 25 Jan 2016 07:31:57 -0800 (PST) X-Received: by 10.66.147.136 with SMTP id tk8mr26929252pab.157.1453735917103; Mon, 25 Jan 2016 07:31:57 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t74si34356343pfa.106.2016.01.25.07.31.56; Mon, 25 Jan 2016 07:31:57 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-input-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-input-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-input-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756724AbcAYPbz (ORCPT + 1 other); Mon, 25 Jan 2016 10:31:55 -0500 Received: from mout.kundenserver.de ([212.227.17.13]:62148 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754095AbcAYPby (ORCPT ); Mon, 25 Jan 2016 10:31:54 -0500 Received: from wuerfel.lan. ([78.42.132.4]) by mrelayeu.kundenserver.de (mreue101) with ESMTPA (Nemesis) id 0M9oN6-1aH5Hk3sMK-00B68C; Mon, 25 Jan 2016 16:31:29 +0100 From: Arnd Bergmann To: Dmitry Torokhov Cc: linux-arm-kernel@lists.infradead.org, Arnd Bergmann , Pavel Rojtberg , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] input: xpad: remove unused function Date: Mon, 25 Jan 2016 16:30:41 +0100 Message-Id: <1453735884-1958624-1-git-send-email-arnd@arndb.de> X-Mailer: git-send-email 2.7.0 X-Provags-ID: V03:K0:0b8RQ04MP/C71brXFViqnUEs/um0Wi2B4EHwP+/Tf9Bm8fGdVJi siDR/5cvAw6BIHzqYQxkZsCR9T5aMDFX3kb08EndHNJeA3sG3UOg01m8sPD19seJPVmFBlR f6BQ/lFuV+rICX9gRtbND2lDfeLYk2YZuQmLOBhkPFeVbC39foD8QLSyE2yXn1RcpXa7Grs pHeyhUt5aF+H4mExQJg4A== X-UI-Out-Filterresults: notjunk:1; V01:K0:0i1ncioOpTc=:3Zlb3o1B2+8IdQZyW1jiUx 9/mEOYQ6QF/QVr4lSZV+7S8xiapwfk9A8315fnokewkbjG4ZOYikIfQSJlrCKDtQhjZ3tmkN2 x3CGdpup9GlnKl6Swr0z/IHOE3tI1F71nsIlhOT/9Yoj0EkYM4CqbMeHu9IiFoP2P0pdyUhEZ aTolNRY9qz9HrBZJ9zj7afKhxA7kuzH8ZXUSUpsBoxkpxdiN8MinJam9cZPMtherjhdrdKwhU UfguwjKbWhgMYrBdfDfX6NIXbokEVmbyDOt9qNz3RsVeaEpZQNX/jLjctpHINSgMuaXijzyRJ cRu6epn/X5spe4IV9n8NhO8t9gOa2JMN188NCXi7vNYvYoIb4/IQ4Nre8IdKhrcJ+1Jx49ZxV QY9c1RzfsxdkZAIkw8hTYYt8M73w1iWUxlVauo5FdW4zX+8WpnR/qx1BFMCXDwwaQxY0ZVFGj 7jP08G/FU/pIHVMfbRo8keafg7dbNAdf/b7Ko9hfW2BwszXANHNKaxJDsga7XKph/QQEW4/9P WRplf8QqUZIoKlyqaPvEhcOcOVFfMLZcWPQ2LqOdvP7dNRRYvIkAhjkcswXx7Bz8P09IkM/Tx nPpnfKtgz6bwKUBYMilswQBj40P+rSRSut2edyzscO/02YCzHfHaaZBNSLsoL6056LWMXtnBu VAQCi1uYuCtx46bhSPki+5vPtOhm+witlCd1AwXR0TyWm8thOd/iGudOhh6aNS+wMhoU= Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org There are two definitions of xpad_identify_controller(), one is used when CONFIG_JOYSTICK_XPAD_LEDS is set, but the other one is empty and never used, and we get a gcc warning about it: drivers/input/joystick/xpad.c:1210:13: warning: 'xpad_identify_controller' defined but not used [-Wunused-function] This removes the second definition. Signed-off-by: Arnd Bergmann Fixes: cae705baa40b ("Input: xpad - re-send LED command on present event") --- drivers/input/joystick/xpad.c | 1 - 1 file changed, 1 deletion(-) -- 2.7.0 -- To unsubscribe from this list: send the line "unsubscribe linux-input" 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/input/joystick/xpad.c b/drivers/input/joystick/xpad.c index 6727954ab74b..e8a84d12b7ff 100644 --- a/drivers/input/joystick/xpad.c +++ b/drivers/input/joystick/xpad.c @@ -1207,7 +1207,6 @@ static void xpad_led_disconnect(struct usb_xpad *xpad) #else static int xpad_led_probe(struct usb_xpad *xpad) { return 0; } static void xpad_led_disconnect(struct usb_xpad *xpad) { } -static void xpad_identify_controller(struct usb_xpad *xpad) { } #endif static int xpad_start_input(struct usb_xpad *xpad)