From patchwork Thu Jun 16 11:38:26 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 9180667 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 0E36A60760 for ; Thu, 16 Jun 2016 11:41:41 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F284127BFF for ; Thu, 16 Jun 2016 11:41:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E75C7282FF; Thu, 16 Jun 2016 11:41:40 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1E66B27BFF for ; Thu, 16 Jun 2016 11:41:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754268AbcFPLli (ORCPT ); Thu, 16 Jun 2016 07:41:38 -0400 Received: from mout.kundenserver.de ([212.227.17.24]:58674 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754021AbcFPLlf (ORCPT ); Thu, 16 Jun 2016 07:41:35 -0400 Received: from wuerfel.lan. ([78.42.132.4]) by mrelayeu.kundenserver.de (mreue101) with ESMTPA (Nemesis) id 0MXYog-1asAsD0P8Y-00WTfE; Thu, 16 Jun 2016 13:38:55 +0200 From: Arnd Bergmann To: Tomi Valkeinen Cc: Arnd Bergmann , Jean-Christophe Plagniol-Villard , linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 5/5] fbmon: remove unused function argument Date: Thu, 16 Jun 2016 13:38:26 +0200 Message-Id: <20160616113831.4108439-6-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 In-Reply-To: <20160616113831.4108439-1-arnd@arndb.de> References: <20160616113831.4108439-1-arnd@arndb.de> X-Provags-ID: V03:K0:NCcZrx3NvWSXIxPGtCuu8ubgalbc2gbPWxC7lK36gD5GKSR8hZ/ rl+ZvQTmxG0/sA9fUrjtM8o/pieOa0yadO9IRgbDxb6rA3kRze7d+Nraym8q96/GIIU/Ksh pRtklmSwE50YTGWNLfvXmXcNW8CaqluTGkx+Gt5XpV5bhJ44EHIhTeIfCAHgv04Bbo3bxTZ iAppR0lSbf210jO+nN86g== X-UI-Out-Filterresults: notjunk:1; V01:K0:huob6JYPtO0=:YeHKVmLmw7aasxLT8g+Tb9 DcVZaqPTLmOFhagLEJVqCC1sU55ELu9hqDS8c2+P7ENED1+eiMMbWFTxDDg1Vs6U/BQosgXxs 6joVM2k5gkGECu+IT/n8NmKAGAyEPtFk6DZbyONz/5ljl9rq5IT9X6RvJ/bsr97zHxKPXlYD1 j5CKTZEmspX2D6gVEWN59De3wxLyqOqIKbT/7QXgGvlcqzgxrQiCqPs7DpDE5YQEk5RaLaEjq dyHRGRYNC7zujv+mqUd9G/m3BYQ9j7Y8vM/ibmPCfIjz6G19P2ZnEXKEaCotk219jyJToWPDI fOtZLmet3ROKe35zkXYR+VIl/2u5+PPIzPsyaT/2ZvZVPZvoSQpBLh0FNHpqEMtVPOy3C5CwX xeZFS/AQZKZCTz/Aj9oNr7J5HsI6wE21RyTaZ2kT37ch/I4FuKeerDzu9K6YCYJ5L3g+2Otcb QBegwX13x682/JqZhycPcA+GnPi5tzBj3ew5mW2pjrPRzh3xENCwDG8oCsMGkjn+0BDz88w5d frXYnO76lRaWyh2nCWu6zDkgelVqUaviA2U+AFHdWDabH9mre4axTX+hUQqz6oE2cWP/bvFPk fXdhBc4EnxZdIMVyUCpRUBcGsz3NgjisCFV/n8YCo/9pMiVXumGsCRAJ42JlUqLkFK5UGwMgy uBVIGF/StI4tozs7ItIG3V3hhN78iyoOQmEd+vlule0c8wk69Eize3Dd0fXChyUOeu4c= Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP When building with "make W=1", we get a warning about an empty stub function that does nothing but reassign its one of its arguments: drivers/video/fbdev/core/fbmon.c: In function 'fb_edid_to_monspecs': drivers/video/fbdev/core/fbmon.c:1497:67: error: parameter 'specs' set but not used [-Werror=unused-but-set-parameter] We can simply make that function completely empty to avoid the warning. Signed-off-by: Arnd Bergmann --- drivers/video/fbdev/core/fbmon.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/video/fbdev/core/fbmon.c b/drivers/video/fbdev/core/fbmon.c index 55e39e822b79..eaa6bab21839 100644 --- a/drivers/video/fbdev/core/fbmon.c +++ b/drivers/video/fbdev/core/fbmon.c @@ -1496,7 +1496,6 @@ int fb_parse_edid(unsigned char *edid, struct fb_var_screeninfo *var) } void fb_edid_to_monspecs(unsigned char *edid, struct fb_monspecs *specs) { - specs = NULL; } void fb_edid_add_monspecs(unsigned char *edid, struct fb_monspecs *specs) {