From patchwork Sat Mar 10 21:31:38 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SF Markus Elfring X-Patchwork-Id: 10274365 X-Patchwork-Delegate: kvalo@adurom.com 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 6BE9A60390 for ; Sat, 10 Mar 2018 21:32:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5C69F289E5 for ; Sat, 10 Mar 2018 21:32:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 514FB289EF; Sat, 10 Mar 2018 21:32:01 +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=unavailable 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 0C1FD289E5 for ; Sat, 10 Mar 2018 21:32:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751333AbeCJVbq (ORCPT ); Sat, 10 Mar 2018 16:31:46 -0500 Received: from mout.web.de ([212.227.15.3]:33629 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751145AbeCJVbo (ORCPT ); Sat, 10 Mar 2018 16:31:44 -0500 Received: from [192.168.1.2] ([78.48.54.123]) by smtp.web.de (mrweb004 [213.165.67.108]) with ESMTPSA (Nemesis) id 0LtkCj-1eTePu1JEz-011F36; Sat, 10 Mar 2018 22:31:39 +0100 Subject: [PATCH 1/3] wlcore: Delete an unnecessary variable initialisation in wl1271_acx_sta_rate_policies() From: SF Markus Elfring To: linux-wireless@vger.kernel.org, netdev@vger.kernel.org, Colin Ian King , Kalle Valo Cc: LKML , kernel-janitors@vger.kernel.org References: Message-ID: <76c402d0-e8eb-9b05-20c1-33db7e5325c2@users.sourceforge.net> Date: Sat, 10 Mar 2018 22:31:38 +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-Language: en-GB X-Provags-ID: V03:K0:lY2VtkWBKZfCV0QOgJfa58YV4a7KilA9OZodPFYlHoIwzPbS0+l sW1U5GSUEQC259Ze6s12IcM/XhIgggDJ1WOJ5JsgrwztjeIjzLeeUrOeWUdW0GaJITfLJd8 D/Tm3KTF/FOfEnKGzXVzYl2ac1iDqyglfSV+Q5XRtMUpX9dR4E1WHAhNeR8tquTyyxDC0w7 /paO1wYRCTxU2L7xRdLCA== X-UI-Out-Filterresults: notjunk:1; V01:K0:fZPjhbhN+Eg=:sLryy4fXYF0x2bKd+fDvu7 /X7MoaAVoDeHWWVjUwIa5K+VHzizBaVjw/M7Pd7jpMvStBVjoEkZrNB6pDusuZ4mDk/XBli5J 8X2U9McPBFFiUEbSG7mbkjteMeGGoTTzwVkpGZmlrf+Q9HeWkkVZsHd0zb+GxpZ1Av+JPvxzY dZG8sIAe+JzM478h2aE2G2G5M+Ttfrv5E7sc4mWp8Y57HAjBT8uIvbmxz9SHUic/ijdmntzR5 oAGNzPAHyGMmM9nBcb8ghdyUggy8J/5ws36r7zAeDTWIwwllvdhRg4Py/5KRMt92mdvU223RR C/Lf30UB48jJhtUQYmiuIngzbivnd9tP8zgb8GczJ9xOseIoY+doxE9mcAwCoOrpnaOHG2EXa lVvMwW7eToFioPBANydUiR2hhlLE4kIU6OFzPwfT7t9OFKm2wGTXXLeiZuLulhTEYBkBwHJWK p1gVrXBPmVX5f1xpD7mFhOAby+Ij1Rn/WzDVBxYyXGGLMSIrMfHCSgt7xPFFEqeUOJT5FXUuH I6kYp0frvFyyGXQOL10v45K88WsAVjB+4nMa5Y0yAoTPEX7pWiHeQyP69FEIcgp0HoBSBtcUp f5WhMpcYa6nLt4uR6SpAk1pPQ3Mpv8GFLK2EA80BdNxUo+x9o5UHvIpNEvqnOoNkmYDmtYYPU aEADlRH+WU5Rltp31JRmspdhzOgLWZ2hJGoHaIy/KTBUf6psOaO0OiHQKnd5DElorXn3hWC5p FG3F55OExSbPWqQ4seR8doarZa5oNhEC7cu/LO1ErArdGMyfr6zNU6J7Jl8ananknCt3Yqchf m4GyC5Q4RKKxwci9H4RKfDillq4lNFVQU5/mFcVtLhLEgm2s5M= Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Markus Elfring Date: Sat, 10 Mar 2018 21:51:17 +0100 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 --- drivers/net/wireless/ti/wlcore/acx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/ti/wlcore/acx.c b/drivers/net/wireless/ti/wlcore/acx.c index 3ca9167d6146..6991fee8fe61 100644 --- a/drivers/net/wireless/ti/wlcore/acx.c +++ b/drivers/net/wireless/ti/wlcore/acx.c @@ -738,7 +738,7 @@ int wl1271_acx_sta_rate_policies(struct wl1271 *wl, struct wl12xx_vif *wlvif) { struct acx_rate_policy *acx; struct conf_tx_rate_class *c = &wl->conf.tx.sta_rc_conf; - int ret = 0; + int ret; wl1271_debug(DEBUG_ACX, "acx rate policies");