Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp1876004pxb; Sun, 18 Apr 2021 09:49:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxFMeF9PHdE7tbh9Z5mcKRg22LdIvfornLaegLykqCLpaovKm6cpAEk6FtoeSh3PeCZ4/GM X-Received: by 2002:a17:902:e8c1:b029:e9:3c98:2dd2 with SMTP id v1-20020a170902e8c1b02900e93c982dd2mr19221436plg.17.1618764557596; Sun, 18 Apr 2021 09:49:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618764557; cv=none; d=google.com; s=arc-20160816; b=IQSU3mD+MbEB/3h+eR+1Bvc79tNQf30IEPwrHWJTKhzMlJmii/YlYBODSoKL3939Qa CXeb30umuVDAG/I3SVtKXkCWPIYyOvoYa2SvFimf0bwbZQurcLbpLPnkwRg2FQej0HXy K4wXn5Pfj3klyLkJCmRTE+2NQvdTiUyPVafmzb+6fsLV8Zmi/C2PSFk06ibqU+2SA4Zp xQYwMZ4t0cARQFU8ZWsfRwpskERvsvtncQbrQ4RE2BghACDpjPKpIjb1FWx3K0QR4II0 Z/KcGrzLpJ4lFhdqg50FLq/s1KldL6wIIJD3Ia1QVLpU+1irVJ6qs6KRH7+vpd+jZgaT y1hw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:cc:to:date:from:dkim-signature; bh=jAaKUfUcTBzN1eaNKA5kBWKVSugP5XYulKpJt/IIaLw=; b=LbamoHgTPdWUsuHsYmSgwT0A04sUhXINLSN04vM9ail0L6AeKbZoFNqanGNqhr6DXZ RZxspKzmPp9zaZmiiZcEBXYJVS60JKIPvuAvWavPY/XIZr85HRsTa3kIAEcYS2M1enRh P4YhQ9UjILI0o/TMnRSlZxUkj6pJgvV5aTVtdiN7S9F2m1mFFDsfuLcFmvjXs755B/jt krYH9YozO/mF5asxDlj4rLztntmlhabZaTjjQzP1AzqyMTS8w2FhhSbmNvMEVkoq1/oE gHpZtuEmmQgrzmYVg6lL0FWXCdQvCgs+hqRi3A8xiicxtPOEkDdbwqTuhh5xiN3f8Zrk HRLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=a4VUMesj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id ls8si5433831pjb.76.2021.04.18.09.49.04; Sun, 18 Apr 2021 09:49:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=a4VUMesj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S231386AbhDRQsw (ORCPT + 99 others); Sun, 18 Apr 2021 12:48:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46144 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229446AbhDRQsv (ORCPT ); Sun, 18 Apr 2021 12:48:51 -0400 Received: from mail-pg1-x530.google.com (mail-pg1-x530.google.com [IPv6:2607:f8b0:4864:20::530]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 67820C06174A for ; Sun, 18 Apr 2021 09:48:22 -0700 (PDT) Received: by mail-pg1-x530.google.com with SMTP id 31so7122465pgn.13 for ; Sun, 18 Apr 2021 09:48:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:date:to:cc:subject:message-id:mime-version:content-disposition; bh=jAaKUfUcTBzN1eaNKA5kBWKVSugP5XYulKpJt/IIaLw=; b=a4VUMesj+ViRkIufmRfiVXZJ1iH/1y5wMI8p2r0h3dGgMtlbMlo7//DMGEqc8EdfjM zlgD0wxQ1MsskRWXAuUlfPHcT/DXf0qbOgbalqPE28IGHbH9+bgiRse6FiW2ZUyvsRDX 5deZqtnrAZVQQXuzCfTPvQZcdkufY8kw/ATngw5v9404GEsf91qC2JL5jORmVfsRHmJK k7H62jdm/+uZtheuLkE8gJRqaPiRq1P6/eS0ZO7H/8I4DZ0C+61lDppbP1VMwLSqN3l4 JqeMs2CWtBjtQIZ9cgULOJfRI5i/SWNQKQRFPjqAE6LS9iK5wRP3ZLuUwPoR6TwW44zz tDlg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:date:to:cc:subject:message-id:mime-version :content-disposition; bh=jAaKUfUcTBzN1eaNKA5kBWKVSugP5XYulKpJt/IIaLw=; b=AFSNdr9pLbPQeJ87hUGV1b9N10vARoMlq0kVWnYSuQRg92GfNUl5sEcHJ/DPWF4BmS GhP82YRDYEgIuz7FH0QLxuvbRpLzYw91uA/KUHxG0gAW3HaEsCLD/DYWNh3NxHAUVQQU FP4/5HDEOJECfeyXHRcpKhN6//w50jfUy3zoFedX1PPfLdwbfy50oYm0bANrL9GsMMZR GwNfYkNOkUWAkZsN3/RmcESmb7bGfwzqzbo8jYWF+r8elNAu4UPfDTWRHxpjLMZNmhEu tEts8HBBU2FcAvb0MYaaL1+hfi1qU+NpAM7+bKC/W0UUyF9TlH5A5JWW9KQg8f4p5gXX hvyA== X-Gm-Message-State: AOAM5306GLTVrQ6rkmC7YXoiozYaXtKespekM/gNW/d2trduUcwCbhZR nc878yXtCo4ctRzTEy4GqnY= X-Received: by 2002:a62:3892:0:b029:250:4fac:7e30 with SMTP id f140-20020a6238920000b02902504fac7e30mr16436281pfa.81.1618764501691; Sun, 18 Apr 2021 09:48:21 -0700 (PDT) Received: from user ([2001:4490:4409:d07c:b4ac:39e7:e05c:f39b]) by smtp.gmail.com with ESMTPSA id n52sm10354260pfv.13.2021.04.18.09.48.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 18 Apr 2021 09:48:21 -0700 (PDT) From: Saurav Girepunje X-Google-Original-From: Saurav Girepunje Date: Sun, 18 Apr 2021 22:18:13 +0530 To: gregkh@linuxfoundation.org, fabioaiuto83@gmail.com, john.oldman@polehill.co.uk, ross.schm.dev@gmail.com, marcocesati@gmail.com, insafonov@gmail.com, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Cc: saurav.girepunje@hotmail.com Subject: [PATCH] staging: rtl8723bs: os_dep: remove unneeded variable ret Message-ID: <20210418164813.GA57451@user> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix the following coccicheck warning: drivers/staging/rtl8723bs/os_dep/os_intfs.c:1156:5-8: Unneeded variable: "ret". Return "0" on line 1199 Signed-off-by: Saurav Girepunje --- drivers/staging/rtl8723bs/os_dep/os_intfs.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/staging/rtl8723bs/os_dep/os_intfs.c b/drivers/staging/rtl8723bs/os_dep/os_intfs.c index 1f34cb2e367c..920ec25c9a4f 100644 --- a/drivers/staging/rtl8723bs/os_dep/os_intfs.c +++ b/drivers/staging/rtl8723bs/os_dep/os_intfs.c @@ -1153,7 +1153,6 @@ int rtw_suspend_common(struct adapter *padapter) struct pwrctrl_priv *pwrpriv = dvobj_to_pwrctl(psdpriv); struct mlme_priv *pmlmepriv = &padapter->mlmepriv; - int ret = 0; unsigned long start_time = jiffies; DBG_871X_LEVEL(_drv_always_, " suspend start\n"); @@ -1196,7 +1195,7 @@ int rtw_suspend_common(struct adapter *padapter) exit: - return ret; + return 0; } static int rtw_resume_process_normal(struct adapter *padapter) -- 2.25.1