Received: by 10.223.176.5 with SMTP id f5csp761990wra; Sat, 3 Feb 2018 09:41:19 -0800 (PST) X-Google-Smtp-Source: AH8x227ge4vZ8ptQP1g8s1IqP1Ijblx0M8BtjY8SNExuED1dsq5J5DsNBVZtIa/wJzDXhTvjw5I6 X-Received: by 10.101.97.67 with SMTP id o3mr33982830pgv.256.1517679679237; Sat, 03 Feb 2018 09:41:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517679679; cv=none; d=google.com; s=arc-20160816; b=ASO84goVbYB7HGV0aGSQnxsdHOsGzlaYlqq7bNI1a7gwGyGCtaxR4VPgoNenhR74hH czslXqfUBPsxpDZubp0lwBih0vbDvR+cI48K1ZRSbOVmWL2vvMYSuUrJqfVkg7DFPQQ1 3KNxhBZOZxMxPjKB1PSqxR1naILf6JB2BA8tUoK8IrfSNSwhb59x7DM2UsVqmrojKWQG zUxJzoAiNcs9tuxfJtME9+7RuqOw1QeEg78astTtkAJawlRMXU90DKrLsRPSIBykonzV inHqXbJ/KAJ03nykZXY633l0fZ/5AKuiGV6XSQy9JCUfLlQNfQRlxhpLFuCI+yLoiH2j jrQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:references:cc:to:from:subject:arc-authentication-results; bh=TN1emsJ1gGXjOSdBpAebRcndUtTKeYanDOqvqwtobbk=; b=kTeU7u0aPBIrRUfSNC7n42DWkTJ2o9BZSeQrDbQUR39scn+ediVoq6eUVqtW6LFYAG 7TKvwYdkrEpt6KfCdNeQECXmA1N/r5dY9xajAN5mwDcw8+29KaphoQnHgD6TSYh7r7tz M1H2wqMERVPUhfDgI1fHRqAlW6eGJZw/wIR6K1BF+zoz3oDNqCEYMtAmdIYr+c+VN19+ fIHkm+34fNmeBis7tUnRE70nTIxde2u56a9aGZ2X2Nw2VQn6keWRX1q5MoghnmxDvdYF 0XouX1vGGyJnkkLtZM83cjyEFu9884234fVaBMB8NDg2jGO8zmdLEUBwOnQVAMGg5Wip o15A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=sourceforge.net Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j3-v6si1945451pld.676.2018.02.03.09.41.04; Sat, 03 Feb 2018 09:41:19 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=sourceforge.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752821AbeBCRjL (ORCPT + 99 others); Sat, 3 Feb 2018 12:39:11 -0500 Received: from mout.web.de ([217.72.192.78]:57230 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752795AbeBCRjG (ORCPT ); Sat, 3 Feb 2018 12:39:06 -0500 Received: from [192.168.1.2] ([77.181.226.140]) by smtp.web.de (mrweb101 [213.165.67.124]) with ESMTPSA (Nemesis) id 0MJkt6-1egvqg1LNc-001DUp; Sat, 03 Feb 2018 18:38:58 +0100 Subject: [PATCH 2/6] hid-prodikeys: Delete an unnecessary variable initialisation in pk_probe() From: SF Markus Elfring To: linux-input@vger.kernel.org, Benjamin Tissoires , Jiri Kosina Cc: LKML , kernel-janitors@vger.kernel.org References: Message-ID: Date: Sat, 3 Feb 2018 18:38:57 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K0:TvRHbrcs6BBPeFnrFr5dLTYXZb3opKgozjvb2EDDYfuzH/qhSJm e1RPqf1Gi/DJyEOpS+7UXa3IOHvCkhdfzb23ZKkxqI+PCyy+aX6W8yWqJcKrIOgXoh4kNhr vM7dQKp3uGSUBxstk3VtZGulvN5nobn6YqSV4J3auywRa/UIMqr4OcV3w5z/+x9K9M+r7Ci yAxNNV9u0hslUuo6o3Cxw== X-UI-Out-Filterresults: notjunk:1;V01:K0:Ln93N9jxdLE=:2UDYwfq8667/edl5mctKYl fjzfn97mQC98//bb1AVJJZUGwN4v9Kbx0WrZKDT4hbgc8k3kiLNVsFYy7DMqXtB/9e8noADEd l3IyhQTy9l1RHvacuqHxbJeXsov0XG3B08ZUC6c0wAhG9z3az78iXV0B+Li77Sd/GHa4Qnvpf MhpDpizAfqpXSwCO1wNisMnErfkzAxyx0giGDvON4rU1DqK0cqBM79ooIgI1fxFLlINux3R0i sZJnHwGTw7kahlGYyFzBd0/GDlmQO3tOwy0ZgsxtQjs6qr6gE71/+08/1RU8PXuac18ejFivh skmVKEyjDywn17eHlTj2FFPUuRgfZG/IobM8bUDQKyqiMfv8vajF2uEFrVaXPumrwqzVD/qFa 2jDlPRva7iCt4XM3vsmS9Hb+unX5Au/BJcCMiehrhNS03qzHZNDM/oEFZyV7UY6bdCzlSj3a5 90QEsEYSCVbRgR1+C+TTQqciGtb5+EzRHu9p5yYBa9kTMWj5h/bLnNaGpDfU3uTx4B+h5kPQB +RVyHe7BbSiN50+WuTUiMYT/cZo0wQ+qg1/T1k5OKvn+RPkUt8cT34XAy03ky1VsnobmCug7K RsP4+hLrzo7dS5jDfB2dDFSXfS3qCwv/7wVtNNcODk5K74kZ5gbgs6D0mm6xFCVZTbX0zOj9w aZJl5KuP4toF35f/sjC0kbt47gQfEAVO7C96E1JEU/YdYnogbYKhCPsedx3lF+m+vES6gAcIV nTbh2aZHbc+gS8LlgVUkwWRah7SP1P7E2oIbrJU6NUa83hh44cpBAQdHsC+YaI7tZCg1N6YiL YQEfakJ2V7NaRXkB4D0Np/4k0HEFhkOdQNBRvlu9o8g6RTA3UQ= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Markus Elfring Date: Sat, 3 Feb 2018 14:45:24 +0100 The local variable "pm" will eventually be set to an appropriate pointer a bit later. Thus omit the explicit initialisation at the beginning. Signed-off-by: Markus Elfring --- drivers/hid/hid-prodikeys.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hid/hid-prodikeys.c b/drivers/hid/hid-prodikeys.c index 9cad4973a67b..2e79dfc92162 100644 --- a/drivers/hid/hid-prodikeys.c +++ b/drivers/hid/hid-prodikeys.c @@ -798,6 +798,6 @@ static int pk_probe(struct hid_device *hdev, const struct hid_device_id *id) unsigned short ifnum = intf->cur_altsetting->desc.bInterfaceNumber; unsigned long quirks = id->driver_data; struct pk_device *pk; - struct pcmidi_snd *pm = NULL; + struct pcmidi_snd *pm; pk = kzalloc(sizeof(*pk), GFP_KERNEL); -- 2.16.1