Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753412AbdCHNZ7 (ORCPT ); Wed, 8 Mar 2017 08:25:59 -0500 Received: from mout.web.de ([212.227.15.14]:60406 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753150AbdCHNZq (ORCPT ); Wed, 8 Mar 2017 08:25:46 -0500 Subject: [PATCH 04/26] IB/ocrdma: Delete unnecessary variable initialisations in ocrdma_mbx_get_dcbx_config() To: linux-rdma@vger.kernel.org, Devesh Sharma , Doug Ledford , Hal Rosenstock , Sean Hefty , Selvin Xavier References: Cc: LKML , kernel-janitors@vger.kernel.org From: SF Markus Elfring Message-ID: <5780384b-87ef-fb39-6804-35f7eaada0c7@users.sourceforge.net> Date: Wed, 8 Mar 2017 13:48:46 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:mF8ZKDvdvW4AT/HWeUpUUXyUk0+l5dht3sEr/Lu5RmSlEeukqVu 66ZSflKuL/SKxHVBVv9nqRgtX6xZxA5eZIjP7CxatypSgbuHXncxLTqYVuXr9uS1xluI6Cc iRN6NW0xILOhrV3CyOg2bBbTb08sJNIZ8cg3mDlRgMmSFKNTjV7fM++eRJOWqtDYZFpAycr BN8TZk5zoEdYW7dL+y47w== X-UI-Out-Filterresults: notjunk:1;V01:K0:OANLVT6+JO8=:WwYdTJH59QJ6NW6soG8lBd mftK/ypNtFwJpl8ddo7G9LtWaLC08XBLKd+0ix3L+RFUollEtKDhCkilF0k59gpSZV6OD47du ta/VKlAJ8nPfr7zM+41vWZ4RhCgs1MQ3h2rWCOFHAjjiAGO+tQ3TsXKjLEwQoHSWfx1Ll00vf F1K+P2wrNnxPcADRcB2U9GXZNXtDyxfj1596XpIYqHVK37RS6Ym9eFDtAwFl87bp0JTFfHx15 UShp19fHO2Vj0svowrYP5D4dOmrv6b4iI9nAxV21DSDRBbbMWuqeBFxjToXeNxt3DEoFuYNvz 6OZ1KUY1fz2Xronuv2uH1CeEm1A07+kezoT6q7WoqffpFguqTuu/UpPevWOzcZ7D24zjwyvXQ KRg3/j69uv1gMtD+X+0qZgS5JgY+14sVJiNSiej2OX3YbbiCDzJGqSgJDtMjOnLM+0FZoVm7d t7UKXR7kSwBgb4G3fpI7rPRvJPB4ctBvpk26LR+M5E3+SY0uIMlWmx+DlQB475/Pai1Vn163G wF06HDcfqEu9KN042eRfBBFUROpjtOhh1gKcI+2fOSMYGWJ1vhZglgila0ge9sPPb3Ys2SiXp xdxy2pZe1Nemgb3Tzl/NwR/hyF2J8tyWQZGULMNB7eHv5gpnPrjzNLO2vDkPjRwrgK/lZXpVz YI/4QjqRp6fJ9nRBF7k8vBIQqz5JRvR/jy4vnJZQ3NF35MZ3oOwWNQUUTmHAf0E6vAAPlhRqy ZbUTq/yombw92smEA8lYhpdMQx2wD+s0dfIcjdfrmUfmE7mE7NgWp2xTXy1JbyCsXDSrYsjH6 HpzpHw0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1071 Lines: 29 From: Markus Elfring Date: Tue, 7 Mar 2017 19:25:55 +0100 The local variables "req" and "rsp" will be set to appropriate pointers a bit later. Thus omit the explicit initialisations at the beginning. Signed-off-by: Markus Elfring --- drivers/infiniband/hw/ocrdma/ocrdma_hw.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/infiniband/hw/ocrdma/ocrdma_hw.c b/drivers/infiniband/hw/ocrdma/ocrdma_hw.c index 85bebb887c5c..517a18e9351a 100644 --- a/drivers/infiniband/hw/ocrdma/ocrdma_hw.c +++ b/drivers/infiniband/hw/ocrdma/ocrdma_hw.c @@ -2895,9 +2895,8 @@ static int ocrdma_mbx_get_dcbx_config(struct ocrdma_dev *dev, u32 ptype, int status; dma_addr_t pa; struct ocrdma_mqe cmd; - - struct ocrdma_get_dcbx_cfg_req *req = NULL; - struct ocrdma_get_dcbx_cfg_rsp *rsp = NULL; + struct ocrdma_get_dcbx_cfg_req *req; + struct ocrdma_get_dcbx_cfg_rsp *rsp; struct pci_dev *pdev = dev->nic_info.pdev; struct ocrdma_mqe_sge *mqe_sge = cmd.u.nonemb_req.sge; -- 2.12.0