Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp1200860ybi; Wed, 17 Jul 2019 11:07:17 -0700 (PDT) X-Google-Smtp-Source: APXvYqwtxMlb5S7jWt9D1pEjzMdjYZbdypvxiwRAe8Z1Gcc7oBAR31pqLxf7uOJteFPzHHMsM5rW X-Received: by 2002:a63:9e54:: with SMTP id r20mr6952424pgo.64.1563386837301; Wed, 17 Jul 2019 11:07:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563386837; cv=none; d=google.com; s=arc-20160816; b=f4kNcLxyxc9NHXcM0+ctmb0QhqywN0NxZ1XX2kVeNY47q03zv96r8VrmhOvKxNdVPT +s+iVywMJ5b2zTpcwXGolHFj6WlUrxkdfMu92fColV50LnSHUsohOYMUyB3cOgAnB2XS 1wcZdrr7ropL2zALAJ1RuZkLuCwf0dyb/WmlJTnK5PRFPoeo0NghrcIz+Sz6vmJhI/iV xTX3sdKKxIjUFzD1FNEQUbriLOhIvlzdZavWh+0qPV0DN4+puXVjSH0s6qbE+C9qSGM/ fxkNNL5Vu6ynB50iRPSqR8cexHSAX3/w81GihTkHoSRPYWwTVEv3Wuzb0KNG2fIXN7lX tzMA== 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=FYqjCNDgdwxDrTeEvfRkTBRjcpgK1SokFa0ifJO2fuQ=; b=ogdhs2TfRkk+8IyfcYKfeUqeHkQy9LoRBpBM3utS8yPaaYQ8gEbK2wOmmRn2t/V5Ee 0XUxiUg0kzOSKxccwnfcEQdzlqZs/eFitpa/JkZk52B9HyNTjI3DECeT2aNHmC93wYc8 Mf1xwCqfXDYAPv+os2FmNEWfuNSEE3Hh0vEmxQUSeUWNt7nZ5Ho9hihzZJF+bPz/QuSW lAOEDCpkErVovbmGnkKhR7umb6pgrZuLS6+G94O/wYe3+6HZtoB9IA+ulASbl/Y8MfpR 0vhVHpKkxGywBpQrpke5M7/RfG3268ojgUnqDJU1aIoRrD+1lnOsCcjKClqnWzvNSStx F35Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=cvFuXAwA; 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 u2si22714090pjb.25.2019.07.17.11.07.00; Wed, 17 Jul 2019 11:07:17 -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=cvFuXAwA; 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 S1727573AbfGQSGm (ORCPT + 99 others); Wed, 17 Jul 2019 14:06:42 -0400 Received: from mail-pg1-f194.google.com ([209.85.215.194]:38966 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727271AbfGQSGm (ORCPT ); Wed, 17 Jul 2019 14:06:42 -0400 Received: by mail-pg1-f194.google.com with SMTP id u17so11531770pgi.6 for ; Wed, 17 Jul 2019 11:06:41 -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=FYqjCNDgdwxDrTeEvfRkTBRjcpgK1SokFa0ifJO2fuQ=; b=cvFuXAwAcLCD0f1dox0053BiwpvnWSpYSnKtgHhKAocIEArOfcO+cUSJh3N/9zBsjN 8nqyexbg+vCk9ZV+BTWl2Xlgunya2hAYD9o3H+k71dkf8SF3GuOkHVcEO4hCqMFL05It rKsF1BIDL48KHiKXcsHt8nWC7duiQfGALK6ONfw8IoppFaHYT90mMElWdsEqB65ZRJgJ XWliWxe1/PzZjRjXqythmo1d0NWaS99X4pNOCVufSVtNlxemUILrEQR/F3eW8fQ5hRJ3 QOpN5F3mA9mBDdOVHE2EO6oltcg+RNzNymW8kB2aCAr9/Co7vLd4Or7mIakEtw3LqDzR 6Hww== 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=FYqjCNDgdwxDrTeEvfRkTBRjcpgK1SokFa0ifJO2fuQ=; b=GZ5udDU1G1PFOIPbi/BvubKHvl18fgF/i67efh6q+MUx0e0UX4IpJknQcx9xar50R+ xdlrSoffNAZOPjJ8iprb6K04y5IQHik34oto4YY1UA+aTuEE5xUGyZeJRILmzNT0mYNp MwQ7a7Xa2R5Fjb7guPzVmGHY8DU1N23PMkSgtQF8+AG0eT9X1yLPqA30tUBftCiNHEua W0Ib5Fz4rj2YYEw2I0SqAmepNcPD/lyJt/PIzG1s+jZL3t4pc+BG1X4k99kR8708JLYp IMrae/JZY9eqhj/73Z4EhgYIwSkRutqRVGoADLPjOJL9wFldAhwX2IH5ynoB+LIN3Ktd lIPA== X-Gm-Message-State: APjAAAVbweQVQ5e6PVdWax4m+Og07PIc+oUUxMYmU4+Qf1cmNaTiZqbQ HXI//G2Hpfv0F6VSZ1NU410= X-Received: by 2002:a63:d34c:: with SMTP id u12mr27655835pgi.114.1563386801044; Wed, 17 Jul 2019 11:06:41 -0700 (PDT) Received: from hari-Inspiron-1545 ([183.83.86.126]) by smtp.gmail.com with ESMTPSA id j1sm46520337pgl.12.2019.07.17.11.06.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 17 Jul 2019 11:06:40 -0700 (PDT) Date: Wed, 17 Jul 2019 23:36:35 +0530 From: Hariprasad Kelam To: Greg Kroah-Hartman , Vatsala Narang , Nishka Dasgupta , Emanuel Bennici , Hardik Singh Rathore , Madhumitha Prabakaran , Michael Straube , devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: [PATCH] staging: rtl8723bs: core: Remove Unneeded variable ret Message-ID: <20190717180635.GA11412@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 Remove Unneeded variable ret . Return _FAIL . We cannot change return type of on_action_spct as its callback function. Issue identified with coccicheck. Signed-off-by: Hariprasad Kelam --- drivers/staging/rtl8723bs/core/rtw_mlme_ext.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/staging/rtl8723bs/core/rtw_mlme_ext.c b/drivers/staging/rtl8723bs/core/rtw_mlme_ext.c index 4285844..0bec806 100644 --- a/drivers/staging/rtl8723bs/core/rtw_mlme_ext.c +++ b/drivers/staging/rtl8723bs/core/rtw_mlme_ext.c @@ -1882,7 +1882,6 @@ unsigned int OnAtim(struct adapter *padapter, union recv_frame *precv_frame) unsigned int on_action_spct(struct adapter *padapter, union recv_frame *precv_frame) { - unsigned int ret = _FAIL; struct sta_info *psta = NULL; struct sta_priv *pstapriv = &padapter->stapriv; u8 *pframe = precv_frame->u.hdr.rx_data; @@ -1914,7 +1913,7 @@ unsigned int on_action_spct(struct adapter *padapter, union recv_frame *precv_fr } exit: - return ret; + return _FAIL; } unsigned int OnAction_back(struct adapter *padapter, union recv_frame *precv_frame) -- 2.7.4