Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753587AbeAJTaH (ORCPT + 1 other); Wed, 10 Jan 2018 14:30:07 -0500 Received: from mout.web.de ([217.72.192.78]:56089 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753768AbeAJTaF (ORCPT ); Wed, 10 Jan 2018 14:30:05 -0500 Subject: [PATCH 5/7] VMCI: Delete an unnecessary variable initialisation in qp_broker_create() From: SF Markus Elfring To: kernel-janitors@vger.kernel.org, Al Viro , Alexey Dobriyan , Andrew Morton , Arnd Bergmann , Dan Carpenter , Greg Kroah-Hartman , "Gustavo A. R. Silva" , Ingo Molnar , Masahiro Yamada Cc: LKML References: <2747f123-a95d-bc68-b858-0327dce3758b@users.sourceforge.net> Message-ID: <5e70c5a1-f946-71cc-e748-24f96f066016@users.sourceforge.net> Date: Wed, 10 Jan 2018 20:29:39 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: <2747f123-a95d-bc68-b858-0327dce3758b@users.sourceforge.net> Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:KRMUQ9UguDB8MtvzA2A8p3VTj02x4z9gQTkVGDYEK+A4JpA0H5G yGEM23Etrf5oACf0y7uRwLnyHsZoPodb6JLBXU8R+rKkg2H5XfuyWuj+REmyHvuxswu3uGm dPeJ5LfYZt+4HeXRCYA5Eg0gJ/PgkA6/3/VDGeyhbp9GYpLIYDSOgK0RKRSLPuipHjq2qbi NtWf69kpBABGvdYoCapzQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:igRBTyau/ow=:/D7Ajaikce+71xzS7mHDo6 6sOfF8s94HkCKLvLItZUOvtu8fiB6fc+6p6a/YkJyuBzp+g9CEjMOLDx9Hbvh0kWsJEs8dONP kq/ux1NORNapZ8i2yySVKsbkhg8okL/Re7OfEE5zboesgNzl8C522ZZrdeaTjRI/VyypJf0wK YEhmev8QjnYVRjdekTf9LbBfBcJRebVQm5GzvstHOTil9DuI/C/WYuTscjEKTRpQpc7VI1w3R EH6PNLnSz5ZQheyZwYz/iwaMCN+TB4zEO4CxBcgg/B4JGGPJ10ToWeZVepDfT/pAdeycNMCHq LCbolyLgT9FMgxFlJKVIkW22cjVYXLKYnfG2yr+X1zgvyaPwaIZ5+V6p1jJBqTmptcM0gMu/A JSR54Lu63l0PoVDLAYy0ZozM3Hd6iIfAWNQEw1ZP8vqjGH3a7pgibxfGeRD83AZt1LonLyR9Z 6XyuzD3jecvtDYyzbgKFA6WR0/489FOVJr9y1xIS+8qCqNPQlL+oY2uoqIIlSE2XhV+hnHoAr Rs+Die5vff64UzbSTnNeJLrWt7pHd4A+jPoHPFQ49vkXZOKMTlDZliRyS/TuS/2LDWvWezkeY fAsapUlPYix1mhS3MMjamAlqy867k7rU/VuTyIJ5xdipC2EKRg5idbkEsyBQhBjwtlA5r7/9X PzB0B/RU738OmOOf2BjNRAi/WTZs1NpnFgp9Pg8fnceOiKvv4d96ziR86Md3s5s6IZFCkE7X7 bMRPrX2nCwTM2lJWOoXwjuhUZUNkNZrRd0DJ0+XORf9JehCfDxLB5j6/gMO5g/BAhsDGGoay0 VQ5TO22BUuQPOTDZJdgSrLYgCNwdqYtyBP4plIXZ3DhHKuvOlI= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: From: Markus Elfring Date: Wed, 10 Jan 2018 19:09:10 +0100 The local variable "entry" 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/misc/vmw_vmci/vmci_queue_pair.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/misc/vmw_vmci/vmci_queue_pair.c b/drivers/misc/vmw_vmci/vmci_queue_pair.c index 7d4437240099..5546274dec5d 100644 --- a/drivers/misc/vmw_vmci/vmci_queue_pair.c +++ b/drivers/misc/vmw_vmci/vmci_queue_pair.c @@ -1291,7 +1291,7 @@ static int qp_broker_create(struct vmci_handle handle, vmci_event_release_cb wakeup_cb, void *client_data, struct qp_broker_entry **ent) { - struct qp_broker_entry *entry = NULL; + struct qp_broker_entry *entry; const u32 context_id = vmci_ctx_get_id(context); bool is_local = flags & VMCI_QPFLAG_LOCAL; int result; -- 2.15.1