From patchwork Tue Feb 7 20:00:08 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SF Markus Elfring X-Patchwork-Id: 9561027 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 25B5F6047A for ; Tue, 7 Feb 2017 20:00:48 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1858A2848D for ; Tue, 7 Feb 2017 20:00:48 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0D3A428494; Tue, 7 Feb 2017 20:00:48 +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 AA4792848D for ; Tue, 7 Feb 2017 20:00:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751336AbdBGUAd (ORCPT ); Tue, 7 Feb 2017 15:00:33 -0500 Received: from mout.web.de ([212.227.17.11]:64843 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754414AbdBGUA3 (ORCPT ); Tue, 7 Feb 2017 15:00:29 -0500 Received: from [192.168.1.2] ([78.49.4.3]) by smtp.web.de (mrweb102 [213.165.67.124]) with ESMTPSA (Nemesis) id 0LzsGF-1cNu5S32fL-0152y8; Tue, 07 Feb 2017 21:00:09 +0100 Subject: [PATCH 17/18] HID-debug: Delete an unnecessary variable initialisation in hid_resolv_usage() To: linux-input@vger.kernel.org, Benjamin Tissoires , =?UTF-8?Q?Bruno_Pr=c3=a9mont?= , Jiri Kosina References: Cc: LKML , kernel-janitors@vger.kernel.org From: SF Markus Elfring Message-ID: <87289011-09d8-d544-f4f7-46ca739ccbf5@users.sourceforge.net> Date: Tue, 7 Feb 2017 21:00:08 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 MIME-Version: 1.0 In-Reply-To: X-Provags-ID: V03:K0:WAtFoHggay8qbw9qtva3F/fiXkfJaHgbXPb5DVT+KX72iUb5dST lm91chuoFeNDn6NiqPI4K3viG7cLl0DvQ/GvTDE33bl+q8/QRTs07rRA+THhLJDpw0yO9UJ flYsT8S6/dMKNpMnPlYvGZ+2smVkwg7Bp7zig/0GLdWMlPBnItvNw8hshyr6r2X/JFdrvTl s4DObJgQc4X/X8pAlvABA== X-UI-Out-Filterresults: notjunk:1; V01:K0:hgSBj64ViR0=:m0fTYHpeu3lEZIlrdScFa4 DRNX48h5O3zgadlFjD8fJYMcCw/nBeW+T58uAN+u2NmnFMDhNHTSYiwlNBejr+BaJTgT/NQoo /0QgrnngBxLJB1khGgpHm//nDX6Dzim7EGVvGhL1Zpo9PP7UH379vgmbTUGkjsH/yrP6eVBzz qx9NJvo5gsOZ5Qv9N6fX5wVuE1boeMGa6lGjwPAl9Yf5Mqhl72zQENNWd0ZcMIiElnWbRnbcc E1QO2xBUcjru/9fG3We0OQ4ElcozmdJbWr53oiSfSJwSjXsqZTahtt+lhEWvcaWBnS+Qp98FW PllbGto2VAlb6USF2oJom7LEWj1I7eTpr7Mlrh1WarxRKHoSM04C7c1yZlTXXPikCCVVLWbUK 4oOGHs2tHkH7l6k/9mRg0fQx4qVVSj2Z5ZzxBqxfMCGTWTCA/kzKHrKSemTbRtmHcvY2xIz6y aUpUr6t6KwTjq14bISiRXpbwoF4gn2kRUIqpubHjyBjpzS4iuXrZY+xLqZdF7IZBHdeb8TkCs 04sN6pgjVaZOZU+JRzZVKDGbdwuK98GctgxlZrmWSwImmEn0BbDBUvbnY+K5AiyF/50kV8orw +ao1RmbxBq3iX2fWV4KZ7PfIVI9j18H9h1X0knLoCRUhVxZ7FVn9ltE0dum0I6SGxyndmvaZ/ GyxSelwakVSJlCnm0G2TUf9xKi3lqvyf/BOmE8v4bc5e1brTcv8XsYx39BW8Gf5F1uHxxZs6e frpw2ojyV61hWK65TfVspGiLm1JPoJyKqXTog6vO+JOf/kJTc3T4UDcqWy3GS1y6MCZHdvvVy LD00JMQ Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Markus Elfring Date: Tue, 7 Feb 2017 20:12:09 +0100 The local variable "buf" will be set to an appropriate pointer by the following statement. Thus omit the explicit initialisation at the beginning. Signed-off-by: Markus Elfring --- drivers/hid/hid-debug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hid/hid-debug.c b/drivers/hid/hid-debug.c index 044b12e32240..0d33bf0d47d1 100644 --- a/drivers/hid/hid-debug.c +++ b/drivers/hid/hid-debug.c @@ -481,7 +481,7 @@ static char *resolv_usage_page(unsigned page, struct seq_file *f) { char *hid_resolv_usage(unsigned usage, struct seq_file *f) { const struct hid_usage_entry *p; - char *buf = NULL; + char *buf; int len = 0; buf = resolv_usage_page(usage >> 16, f);