Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4093806yba; Sun, 19 May 2019 10:30:50 -0700 (PDT) X-Google-Smtp-Source: APXvYqztPDQx68cDH8mQK79bj9VMFLtxYU4fbzmb/kQwOQydxOvJjh2EYrxVzziP8GIKOK3fdHwN X-Received: by 2002:aa7:93ba:: with SMTP id x26mr15074197pff.238.1558287050764; Sun, 19 May 2019 10:30:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558287050; cv=none; d=google.com; s=arc-20160816; b=rfTqDog60r/+SjdZGpEKDueraX0pbztF066qAAwRyw+Q9ho30C2uJV8BV5JXgactCy nBYM3J/fitU21weZxoZsXWunOWxevpn/t/FbrJQ9f4wRzamz4IMM6+LrrNwQujIr5ijS gejkGW2cDS8/hgP8s0inHb0l1oZGfpOzIpWMAIQuXBRqZcvfunc/G+1umrKENN5XdIbF teeH/nDNl95xR4+jTGkKPvubv6R+H6KruAyxpbnYS5bL1iQLJTHJjO/PfnaV6PNetvET SLf+gMPTzg+kEY92eCScUT2CHHhI1E3D105PbhpIFDdhRKsoRSrMTUfkhfkjkGX3I9x/ BvUA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-disposition :mime-version:message-id:subject:to:from:date:dkim-signature; bh=u2lVPbWCs/nw7GnzyUIhDMrqS7+oEodUC8PkBDuay7I=; b=nR+v9Wsxs81y9T688I8EGB3/Qw53sjmuqJE57GjE0W+itL04OPBbUd02N7T/56IOPb 9ou/SSVvyfIUFpIvNmjtwsRvXINYTrDSt9Bxvg4dFVzuXcG1GvHFDztglb0MGQZQbR48 /ZYfEkhWCFRBofxJNPDt1ZbG8Pj/Jfoi7XPte3mt1UQKRbd3LT4t8PJoUAXwR9a4V9Cb AgjR2kvN8ptOrq63dq6NCga+eADy+I/j5hVc4vRwETsHPwVd2hXOwZ7O3wmkEzgflhA2 WOE/VjtbWyRxt/FT7WS9CwXELAtFSG8rEAXO6pvBkjJf8NvpRqiWXwrooMvG5sbzOvlQ Oq7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="NRo/fDBP"; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 186si15899155pfc.247.2019.05.19.10.30.36; Sun, 19 May 2019 10:30:50 -0700 (PDT) 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; dkim=pass header.i=@gmail.com header.s=20161025 header.b="NRo/fDBP"; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727522AbfESR1b (ORCPT + 99 others); Sun, 19 May 2019 13:27:31 -0400 Received: from mail-pf1-f194.google.com ([209.85.210.194]:32900 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725769AbfESR1a (ORCPT ); Sun, 19 May 2019 13:27:30 -0400 Received: by mail-pf1-f194.google.com with SMTP id z28so6075557pfk.0 for ; Sun, 19 May 2019 10:27:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:mime-version:content-disposition :user-agent; bh=u2lVPbWCs/nw7GnzyUIhDMrqS7+oEodUC8PkBDuay7I=; b=NRo/fDBPGQhDg7e7L2Cq6GJmTZKWrObVIfHPuz8uDY7bH2HMdU4ac3V54Skt3THW44 s3Wi/iPla03SRCoQSgwlufGjwYTJ3HuS4OosoGDRU9DHipd0AcgnLsFnxmJEFqnCpr7k UCpjDiw3Nv6/j2dHEot66VQdym4BP6+UE80tUuJzaNSktSLcNnBE1ICS9cN2gUUGY9ls zFoioWW/V4DNGGqjShx6Xo8cYcl/aecbJjC5XwnSPYg2Rc/IHc9cHN6lZajeF6uCxZkT t81iT/AE86e06JJZR+5UFy6fSCUQ3IBrtqClC2Pee8HXuGjWi7Ign89F2G+xa5G3JduY yKWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:mime-version :content-disposition:user-agent; bh=u2lVPbWCs/nw7GnzyUIhDMrqS7+oEodUC8PkBDuay7I=; b=oA6ptAN6BmH72WcLbUe0s4R2mDuh1pKLrLfL1+ZUc0gCo3l/Iz5ckrPrv/78PqbNoi qakB5EcEOIyfxGu3Ud+cSqc7zugJjb1mQQ8HOvJOg2RPf8wYmOhTuQZRyJ9tg56RBmTU 5zGXtSW98C8JXV89wfJCkTYcD6pXeDo8WXq/BwIqpsehG7Bu41l6ppG5fkrPMwLL5yM8 KBknSbVens9LVbbLffISLINn5LCVW9f7ls5s187UeYLfRxtAizW5kC2Ao7ty79cf3uPs cJR6uIk/HPUV2SsOOzA6wkZPucUfiqYLlnbgGv6CAttmTIrvfMeJF4RNRG+zleb1JCW8 LDCQ== X-Gm-Message-State: APjAAAX6Vk+s2B4yT+jHDb2ChZy7ytUt54mdeZ0O5l0pL4Y9tdYl73yP lQq/XIWv97n44IRRHdOg09M= X-Received: by 2002:a63:2260:: with SMTP id t32mr32743695pgm.222.1558286849851; Sun, 19 May 2019 10:27:29 -0700 (PDT) Received: from hari-Inspiron-1545 ([183.83.92.73]) by smtp.gmail.com with ESMTPSA id o20sm18727736pgj.70.2019.05.19.10.27.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 19 May 2019 10:27:29 -0700 (PDT) Date: Sun, 19 May 2019 22:57:24 +0530 From: Hariprasad Kelam To: Greg Kroah-Hartman , Hariprasad Kelam , Payal Kshirsagar , devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: [Patch v2] staging: rtl8723bs: hal: odm_HWConfig: odm_HWConfig: Unneeded variable: "result". Return "HAL_STATUS_SUCCESS" Message-ID: <20190519172723.GA9329@hari-Inspiron-1545> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch fixes below warnings reported by coccicheck drivers/staging/rtl8723bs/hal/odm_HWConfig.c:501:4-10: Unneeded variable: "result". Return "HAL_STATUS_SUCCESS" on line 526 Signed-off-by: Hariprasad Kelam ----- Changes in v2: - fixed typo in commit message --- --- drivers/staging/rtl8723bs/hal/odm_HWConfig.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/staging/rtl8723bs/hal/odm_HWConfig.c b/drivers/staging/rtl8723bs/hal/odm_HWConfig.c index d802a1f..4711c65 100644 --- a/drivers/staging/rtl8723bs/hal/odm_HWConfig.c +++ b/drivers/staging/rtl8723bs/hal/odm_HWConfig.c @@ -498,8 +498,6 @@ HAL_STATUS ODM_ConfigBBWithHeaderFile( HAL_STATUS ODM_ConfigMACWithHeaderFile(PDM_ODM_T pDM_Odm) { - u8 result = HAL_STATUS_SUCCESS; - ODM_RT_TRACE( pDM_Odm, ODM_COMP_INIT, @@ -523,5 +521,5 @@ HAL_STATUS ODM_ConfigMACWithHeaderFile(PDM_ODM_T pDM_Odm) READ_AND_CONFIG(8723B, _MAC_REG); - return result; + return HAL_STATUS_SUCCESS; } -- 2.7.4