From patchwork Sun Aug 21 17:45:12 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SF Markus Elfring X-Patchwork-Id: 9292627 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 E802E600CB for ; Sun, 21 Aug 2016 17:45:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D2EED28725 for ; Sun, 21 Aug 2016 17:45:34 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B0318288FA; Sun, 21 Aug 2016 17:45:34 +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 529BC28725 for ; Sun, 21 Aug 2016 17:45:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752115AbcHURpc (ORCPT ); Sun, 21 Aug 2016 13:45:32 -0400 Received: from mout.web.de ([212.227.17.12]:53757 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751549AbcHURpb (ORCPT ); Sun, 21 Aug 2016 13:45:31 -0400 Received: from [192.168.1.3] ([77.181.85.179]) by smtp.web.de (mrweb103) with ESMTPSA (Nemesis) id 0McFLP-1buROy1Z39-00Jb0T; Sun, 21 Aug 2016 19:45:19 +0200 Subject: [PATCH 2/2] IB/core: Delete an unnecessary initialisation in ib_is_udata_cleared() To: linux-rdma@vger.kernel.org, Doug Ledford , Hal Rosenstock , Sean Hefty References: <566ABCD9.1060404@users.sourceforge.net> Cc: LKML , kernel-janitors@vger.kernel.org, Julia Lawall From: SF Markus Elfring Message-ID: Date: Sun, 21 Aug 2016 19:45:12 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2 MIME-Version: 1.0 In-Reply-To: X-Provags-ID: V03:K0:ZU9EuAxJjCB9kmWYm9gc6olFxBjX/OTVDQ15uZg0sJ7Hbsy7zx+ ff5PqLDhQMcC5Gi9tUi/+Ko9opgjr4nYWQiBsUre3ZUi7N7A0dEL48TarXCVVE0PR18cDLP 0wNpZu18v8TOKcRL2yOamR4tBTPXv8FIdznfeFfjyYK2BhAU2nSGXAXPpc/yl53EjegM1Qq c1chjVe3o9NnGYvCCsLPQ== X-UI-Out-Filterresults: notjunk:1; V01:K0:J1j4BQ/Fpwg=:EuFMEHJjLhu7chcYYnwf9X nAJ59fa3FE+IbI7H4mZ9hGiU/UxIj7tbbaJcIe/k9jNnFqYhPxwA7ZmaXdk5ydfJFOUE4Hn2A w0f9pkUWB+CrTI2CqiTtyu5FhhYiyAf3tp3vbG5Ym/A1h8+tvZYnFgYAJovVgqiOWCXBFDMi1 L2XZaGn5l+bv6LzQjk/Z+iZXG2OuSV80L9jewMjNnJATvVSaKrAPgKAibnsk/XKrWu7xk+hcz 0KbUckGW1a7lkerHeFVJTzLwWVbbshm4QG/ZvZyuPJBAgKuzu9INknLDFXSfxeS7hlE/A9Z79 TLxbMdmwdxB8Y/xTRHbI7suj6SDzegMDdCaxizRqwJmN2qc7zF36mg7pRKAFEZxbn6DdRUXnc Ynmst7pPrqpSYg6QNejQjOWV2nrVTkK7TtMaepXEC0BZVZ5emlc1P7LjhCObq3gTxNJuTdJnb S2Ntn/qOOdDb4nf3RPKQLljd5ZPD9kjwGuYrdoS/GAOXi8Xr/62T36UpUYj8mDmhR9UsphsW7 hJYdep6X3bMhcvTqmSC2ELS1oX6ZFbnC7rjQTzV9/YqqSZqbk2ppA0GycJ6qNFm74Uq/RiVyT q8DLmFcZU4y6uITDBDpa2555MlfRBdQBwL2+36jbwnoHf+PrDPjyIYpeikzlV/WWjo5agz7Rq 1njJIjvUi++dO4Zuvo9mKLjACTj6F3Iufu1cE/OqB65lSLNzTJaPpalAp1V8WqWCAYLXKZIG8 H5GUG7UbGH7wzGV+L3YyPts/+sr7LQGj9lqKF+SmeKBrzGfJD8aseRDkoZ1nJdETwrCetP+lP iMtJxNg Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Markus Elfring Date: Sun, 21 Aug 2016 19:23:12 +0200 The local variable "ret" will be set to an appropriate value a bit later. Thus omit the explicit initialisation at the beginning. Signed-off-by: Markus Elfring --- include/rdma/ib_verbs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/rdma/ib_verbs.h b/include/rdma/ib_verbs.h index 033610b..0d8100f 100644 --- a/include/rdma/ib_verbs.h +++ b/include/rdma/ib_verbs.h @@ -2199,7 +2199,7 @@ static inline bool ib_is_udata_cleared(struct ib_udata *udata, size_t len) { const void __user *p = udata->inbuf + offset; - bool ret = false; + bool ret; u8 *buf; if (len > USHRT_MAX)