Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4087471yba; Sun, 19 May 2019 10:21:54 -0700 (PDT) X-Google-Smtp-Source: APXvYqyvZmkf5VbvQrwTnQx2/4oaeKDZ1cg5wqjh6lBZMwhc7L3jiGBOufLEffi0pp22Me4UIDTt X-Received: by 2002:a17:902:7488:: with SMTP id h8mr36209368pll.315.1558286514351; Sun, 19 May 2019 10:21:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558286514; cv=none; d=google.com; s=arc-20160816; b=W3bbVkcUCrbg167me9+9nNucWUzBeT3wHyn+SWuFqRY6AxeGhXve0unaK+sf1LR/YD hUFTabvfPwSoAujA7BF2QsM3EPc0ebJQyw2ea8it3x4QUrkmOOeRSpIOhaXNPF7RlLEy kFL9CTibpL3kKewYMY29rkhGSgwvKdcEFdk8nrobbne96ocmbEL22CRBg4F8ZCziezlr 9uSbzPh0HXL8ga7+jSyIEH6/PtifV83qTPlghqRGosPeDg180IwEEMFDKvGmeZr8+xla Q5/faRSkjuUgl/hemWAZ5KnlJ/cm8EUIwczv5RbFBMsdOm7X+8luvTW6MAiAwcp7cbVj avYQ== 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=mwcMY0VK0yx/OQxigRKnWF/1+9CrvrV9U/DB+F7KGAw=; b=xcV9/7trGrRgfGbKWNw4E0IERA0oKPTk5ili70bWRbqWUTWtKd+vpvDpFvc8UJ6K4N ZD7jLdk2/A/0QAipd1PtOkvH9jL1e0XbgNTI/H8P/gNc+Q7V7+oaOkjkUjTHG3W+V4iC WXg2kSsigcIfeudA9jkOnCo2mwXKfokogSlr7vfjitV8tyc4NtZGj0tKfYuPXAllpf8b Mqk1nMguPtmWOLg7o5Oye/0fkGFNIj11S+Qa7S23LcscYuY1PgaJUoR3iRXnU1KzXgHB joWT65L+Dyp9da2dpOogtCppNtrnwT8x0DVtZmi744qi0QiYTAngtTaATTl4WvN8JR0t j93w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=gWa0lihc; 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 u190si4578930pgd.296.2019.05.19.10.21.38; Sun, 19 May 2019 10:21:54 -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=gWa0lihc; 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 S1726152AbfESRDa (ORCPT + 99 others); Sun, 19 May 2019 13:03:30 -0400 Received: from mail-pf1-f196.google.com ([209.85.210.196]:43566 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725777AbfESRDa (ORCPT ); Sun, 19 May 2019 13:03:30 -0400 Received: by mail-pf1-f196.google.com with SMTP id c6so6022578pfa.10 for ; Sun, 19 May 2019 10:03: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=mwcMY0VK0yx/OQxigRKnWF/1+9CrvrV9U/DB+F7KGAw=; b=gWa0lihcO1Y5ONlmmU0LQ1eEAIlhK6f/aJU1utdVeo0XCYYtEatwMTpEY5kr45Pi5J lfkS21DWq0pWC0tceRES+F56ZHsIKGTk5G5r2i5vuJhieEwMB3nXPsTKkUbnsyS4DhlY dc2RjJ3qf0rVLnhufld77d/RuyYe823BdKP0ljeDqd1xcKqUNX6EEctCYls9PeBumyXE MVz9YpBdJnsszIncMEyW7IFJjccQgZdiiW/9OQR/QJT4sa7s0KyNhCIri9/7dOs9jDsK pK+z0ICK82Sn/Mf9CXm24v1Ywe/SZkgk81kGWRDmv9aRHI+28b3IGw32LTkDeuT9b7NB ArsA== 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=mwcMY0VK0yx/OQxigRKnWF/1+9CrvrV9U/DB+F7KGAw=; b=JuvJorUfsbLnj2fDW+/QJmjZUo+3937bhX9QG0PKS1Bu6X42hTAQn97lyn633wMnU4 AuxxfHd0ZeehceeTMIhG6zDrvL79sopf1c7MiAXgoDlAWIa8ofMMxY1Co3QEonCiZeCX 89uGF8CfslQCqfMQHXu8azawA8Lbi1CtMLi3yYhMGPqfa1XrC9kI3KQIYas7ZFzDiIsS EmJNBZONBJSyLDMJvQ8e1Yk4wB7tPU7LqVNy786P8L8A5wMAAqbqqTtQFIty9CQeLQ8F kNjzbQvvhhevJkCyvAx6JmcSUlRM4rrM1a+WDrjDInO2TaTZBQS/P8DrHvZHVvW8hpEW kURg== X-Gm-Message-State: APjAAAW1xxWzJtiZltPNb8KnnlMly7U1jW5O0UBYtpcrYAqcKdMbBkyh 7ZWb/VFGj4bXztV2HTNVLnU= X-Received: by 2002:a63:e94e:: with SMTP id q14mr69861840pgj.110.1558285409956; Sun, 19 May 2019 10:03:29 -0700 (PDT) Received: from hari-Inspiron-1545 ([183.83.92.73]) by smtp.gmail.com with ESMTPSA id l7sm13308033pfl.9.2019.05.19.10.03.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 19 May 2019 10:03:29 -0700 (PDT) Date: Sun, 19 May 2019 22:33:25 +0530 From: Hariprasad Kelam To: Greg Kroah-Hartman , Hariprasad Kelam , Payal Kshirsagar , devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: [PATCH] taging: rtl8723bs: hal: odm_HWConfig: odm_HWConfig: Unneeded variable: "result". Return "HAL_STATUS_SUCCESS" Message-ID: <20190519170325.GA6982@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 --- 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