Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp3552271pxb; Mon, 4 Apr 2022 21:01:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJybdp6VSJxDm30vyxdUzTzMe3Q+tlCdNG4Ks0VWKi7rDiDPRgB5MP+aODgLwpHnZv0XLXhF X-Received: by 2002:a17:90b:224f:b0:1c9:949e:2202 with SMTP id hk15-20020a17090b224f00b001c9949e2202mr1747010pjb.56.1649131298872; Mon, 04 Apr 2022 21:01:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649131298; cv=none; d=google.com; s=arc-20160816; b=00Qm6zYWjqHfoR3MUVTa0dY0TR2plraHAgu81AIxgQ6QdR1x1PFjkBPNv+pnlG44UD 04A4rKMnFuGgEhPs9SAYPkeynt8yXri6NQ4L546ie7NHlDYTyyub94rDDwmLwq5Jv9mx VYkwp9MPxxPZDFJjxzbUsHZJyensoDxsH2/F6vT22k/Jl4szRs7SQNUl+ZMNQD4IrM+3 pZooAZh9mBamehjlLEBJr9YI29GAZ0duDUvUy1hvxEyh9STzZ15nuBwhM7hBjohuOYeR /q8NAqbxtKS2j3/kzXrc/sXd1hs6eBjWVYe2tBVkm5WWKY8rKuDvWHpm4F/aPwP0UJl1 nlUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=YRi6mg+Ezu0oiDDIceXrLTZ+9OfQbKuOLQbA8q9YTdk=; b=D3SarSM1P3XL8/wWSeO42TudM70hlXbLbBZ+0bOwYPFo34/JD3NqPLINeTFuFfIbRF rjgl/5Upc+mcbPrh9TqvaqS5nRdv8mwhCKdwPpOQXAZNSf5ymFDyrAg+OZKWeeIPQnJE xnL6f+EBwIDW73k3P1WMwBvDqQbexLjQXQxe8KOuMhspilLtFq8adsDpkyWyjhN49nwj kD01V4g/fSfg6CYlomfUYLUZKqYWTGlw0Mn6BWGXjOTJqvzZEXyQSUUiFfU0lHZp5xES 7rFi4mtko+fxPh44X4VISmetPNQHUSgCA7eW61rPF4HoZWR8l0JV5PcNow8xfQ4wUxEo bimw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=oiZ5OOkm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1: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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id h1-20020a056a00218100b004fb2adfc789si13114753pfi.154.2022.04.04.21.01.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Apr 2022 21:01:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=oiZ5OOkm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1: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: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 40692205D3; Mon, 4 Apr 2022 20:16:50 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230172AbiDEDSl (ORCPT + 99 others); Mon, 4 Apr 2022 23:18:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45970 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230169AbiDEDSi (ORCPT ); Mon, 4 Apr 2022 23:18:38 -0400 Received: from mail-qt1-x82e.google.com (mail-qt1-x82e.google.com [IPv6:2607:f8b0:4864:20::82e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 64CE321E20 for ; Mon, 4 Apr 2022 20:16:30 -0700 (PDT) Received: by mail-qt1-x82e.google.com with SMTP id s11so9473487qtc.3 for ; Mon, 04 Apr 2022 20:16:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=YRi6mg+Ezu0oiDDIceXrLTZ+9OfQbKuOLQbA8q9YTdk=; b=oiZ5OOkmx5jtptFYs/x7G6URXWmZbRLK6/MwcYOIKV82KH94lio3pXKayG88cIjZIc N/cgEQS96Xse/wBSWCyuxwT9KhAJhC3gedNQgi8DfVSdFCveWsRNmwbxVttso1Ec0gIi r4qC6jrFJM2M8mthtL/WPC3NX99B6I10aPhKO/TgF8s+9iIbwpIcOZoV6CB5pdwlSGos zbwDOGzOy1kInjOwr24evMuD0wxRAkRhmdH1emzjeLfplpIIH15pQu7PCIRGvYu92LSz MNWNS8bvRRGFCc0A0SQA8RU1amLHz7AV4rzmHeHolo+P/VQ8NBQhoXCb7KVR33Eke0jL PJEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=YRi6mg+Ezu0oiDDIceXrLTZ+9OfQbKuOLQbA8q9YTdk=; b=u5ylxLD2BGnXlHLqLBD4202WrQ/qbF29L9iw7+tSGDP1HMUjhOm05R+Es8ges0tlfT J55Kk9+5466/HcV9lecjeeWjaCghkRMSRFpuJRd4Wv5OLEJy6R6yrncjQYUWycWUrYoj dO0vbCXOSwuZO/WMsblORNSd9n2XOVthl+wMy/zdT1i7DVO0ZSGKTeO3/LZb6CMkE1XG QRrOfg96zhkSvYM7LpOaXxaw8C1ZUfku1o4UhwzzAUOnsQrclM2SsGUDwwa+staVa3wG Fw0/3NLU1GJ1i8iM1Ky56Df7TmYP3cXBnZrzXi7vlNgASRhquA7Xs40ZBC7ufGZXQGhM mHyg== X-Gm-Message-State: AOAM531wLFGKtdhtIjbmBMYccjx91dfadYJvz3dWgDAWmTuSZlBIrWnd XYrfCU7xqamNkBSzbRRe0vxeMnWT1svmSw== X-Received: by 2002:ac8:5702:0:b0:2e1:ec8a:917a with SMTP id 2-20020ac85702000000b002e1ec8a917amr1263525qtw.682.1649128589221; Mon, 04 Apr 2022 20:16:29 -0700 (PDT) Received: from euclid ([71.58.109.160]) by smtp.gmail.com with ESMTPSA id bi36-20020a05620a31a400b00680fffef5b2sm7512101qkb.48.2022.04.04.20.16.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Apr 2022 20:16:28 -0700 (PDT) From: Sevinj Aghayeva To: Greg Kroah-Hartman Cc: linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, outreachy@lists.linux.dev, Sevinj Aghayeva Subject: [PATCH 3/5] staging: rtl8723bs: remove return from a function returning void Date: Mon, 4 Apr 2022 23:16:10 -0400 Message-Id: X-Mailer: git-send-email 2.25.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Adhere to Linux kernel coding style. Reported by checkpatch: WARNING: void function return statements are not generally useful Signed-off-by: Sevinj Aghayeva --- drivers/staging/rtl8723bs/core/rtw_mlme_ext.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/drivers/staging/rtl8723bs/core/rtw_mlme_ext.c b/drivers/staging/rtl8723bs/core/rtw_mlme_ext.c index 8c3b1448270a..c06be65b45cf 100644 --- a/drivers/staging/rtl8723bs/core/rtw_mlme_ext.c +++ b/drivers/staging/rtl8723bs/core/rtw_mlme_ext.c @@ -5112,22 +5112,17 @@ void survey_timer_hdl(struct timer_list *t) ph2c = rtw_zmalloc(sizeof(struct cmd_obj)); if (!ph2c) - goto exit_survey_timer_hdl; + return; psurveyPara = rtw_zmalloc(sizeof(struct sitesurvey_parm)); if (!psurveyPara) { kfree(ph2c); - goto exit_survey_timer_hdl; + return; } init_h2fwcmd_w_parm_no_rsp(ph2c, psurveyPara, GEN_CMD_CODE(_SiteSurvey)); rtw_enqueue_cmd(pcmdpriv, ph2c); } - - -exit_survey_timer_hdl: - - return; } void link_timer_hdl(struct timer_list *t) -- 2.25.1