Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp1471808rwe; Thu, 1 Sep 2022 20:33:32 -0700 (PDT) X-Google-Smtp-Source: AA6agR55tBUKkeeL3aHof2/eVQZ3fw9RODsINf+Bx8zu7IjEnSaGVwqAm9OwjszkQvwUQcBuRnLK X-Received: by 2002:a63:8a49:0:b0:42b:ea84:58d with SMTP id y70-20020a638a49000000b0042bea84058dmr21208826pgd.292.1662089612530; Thu, 01 Sep 2022 20:33:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662089612; cv=none; d=google.com; s=arc-20160816; b=rWaQBKq+Wvw6mJyUuEvpJ34RbpdRWPk73sEQMT9KKgwNBVyZFP8Xkg4WKXvy3dm0f3 /6/UT8er66Ux0b3WtvrPUJscQ6tu+esff8lD4q4+GfkrVc7G+OHnw34D7n8rGXAwha3q kSbS8I80R30OLM+0E7ntGxJJpAfKKBqtd4jKTWsMQkg/pIxjqPwBiMFCyYisjsb61PUt 3vmebkG4lMsKiqwNRalYLKfO7+y4ByM0D6kifg8XD/a3QuhUbgJKiOrPmQtAjNdEO4TH d4yWBlwm6XDNPlNNdp2KHK4RKdZyyFHf75XSJDlUtlFz86Cr4O+o+zhGHQrtKE2a2MwK OlZA== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=s6bst2A0kCUrqDNhcQ/B6E8Aii0yys2KniBEwPWQ3OM=; b=y4kW6jMJCw34wFFgjcVf+5AJO5CCjaEPXnzZoFAmXqGL98g27kCr0Y2btJ8728oQVw 2YKfMO75G3iCEvZkAUks+2OzVg8Sa8zTSfxgLqsWiXfHGku1oAot7k5e07VkJoxmAcG/ MUkjCGCZzFNbRSZVmsCp5qDr/LhEXUC2GEJPSadwUDoJxwl+7u5Ro52e/hlkFVluZKHW 9JNftL7IghEUh2paJY2KThwzc0mTLT16XdLhsBsGJKbUH0w+75BIqdRx47WMFtVN+GGG 5mkVigsBGjenZ+GO2T/ZwiNduM4IHHPz953FS/rq3kO9qoZpnYi4RWN0VTLvH8zuiNXy EL7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=V6tNgyVK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u20-20020a056a00159400b0053a974bc0d8si911049pfk.219.2022.09.01.20.33.21; Thu, 01 Sep 2022 20:33:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=V6tNgyVK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S235099AbiIBD0m (ORCPT + 99 others); Thu, 1 Sep 2022 23:26:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35930 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231936AbiIBD0h (ORCPT ); Thu, 1 Sep 2022 23:26:37 -0400 Received: from mail-pf1-x433.google.com (mail-pf1-x433.google.com [IPv6:2607:f8b0:4864:20::433]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B37D3796A6 for ; Thu, 1 Sep 2022 20:26:36 -0700 (PDT) Received: by mail-pf1-x433.google.com with SMTP id w139so643273pfc.13 for ; Thu, 01 Sep 2022 20:26:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date; bh=s6bst2A0kCUrqDNhcQ/B6E8Aii0yys2KniBEwPWQ3OM=; b=V6tNgyVKRSrrQ0mQrbqdGQWb/KuJ0IygBc8Ge8Fw+9ANh7bRUfUgCIf9pHXYUMKXTW CCxrHeif6nsL984E4fJF4jw0vhc1eYa9FfZjczRtcwwXJi6thTO3W8eHDoQlMeR9kpz9 ra60yV1HeUzvL7GiKX3nmomtmr42wOpGJqIIqMszIf9hkvTPBcXLVa9eO+RFx2QF3Y57 syifW/LzQOEYCn6zlf6NBNXOgRT8JGxBYoE+VXbOrtw5v+VYrwFXSDG3n5SX+4KB5OKX oAhlB9YEtVS6pwcorCxBtIrT1oiesQnlJ571Wj5aGLzsDeL/TrY0TxtQuTH3Q3pBSGFZ TQ6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date; bh=s6bst2A0kCUrqDNhcQ/B6E8Aii0yys2KniBEwPWQ3OM=; b=O55WtwKq2Lx29U0fO/6UuG/DSeVY4442hXk+ajM25YIJWigWKVORQuhw+Iax5REx2z 6ggfG5EMjwsTQSsrGY40+cAInxi6aBmodyYIPTD+i4iP4JJVgtRnz0Jwc7ealazoPbAT YlrIXcRFK66fw7rZ1zakXsKIKn0dAdr45rxw6RXIH3A67Li5M79B81emaphIuh2Rj7Vp DhOyFr36tg2HQk8Ow2ds5p7s/oFYmsc6R4BhHAmFqj5F4p+/a2P2ra8SgYCq48OvXi23 1+tfYwPzCE5sUevh5dQBN55iDdGBd513Ucu3yJQSatA/FCld4uAngopxvZ4ly0oHgwGA zwZg== X-Gm-Message-State: ACgBeo12JJEq+ZCQ+7Q6XiXUN1fsMoIlpOEg7j9Q5SJn4gQStIqyTuEf 729fx29cvyObiBVPP6GvbBY= X-Received: by 2002:a05:6a00:2291:b0:539:d5b8:4ecc with SMTP id f17-20020a056a00229100b00539d5b84eccmr15866104pfe.79.1662089196077; Thu, 01 Sep 2022 20:26:36 -0700 (PDT) Received: from localhost.localdomain ([193.203.214.57]) by smtp.gmail.com with ESMTPSA id k5-20020a63d845000000b0042a713dd68csm306538pgj.53.2022.09.01.20.26.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Sep 2022 20:26:35 -0700 (PDT) From: cgel.zte@gmail.com X-Google-Original-From: lu.fengchang@zte.com.cn To: Larry.Finger@lwfinger.net Cc: phil@philpotter.co.uk, paskripkin@gmail.com, gregkh@linuxfoundation.org, straube.linux@gmail.com, martin@kaiser.cx, lu.fengchang@zte.com.cn, makvihas@gmail.com, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Zeal-Robot Subject: [PATCH linux-next] Driver: r8188eu: Remove the unneeded result variable Return 0 instead of storing it in another redundant variable. Date: Fri, 2 Sep 2022 03:26:28 +0000 Message-Id: <20220902032628.316333-1-lu.fengchang@zte.com.cn> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 From: lufengchang Reported-by: Zeal-Robot Signed-off-by: lufengchang --- drivers/staging/r8188eu/hal/rtl8188eu_xmit.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/staging/r8188eu/hal/rtl8188eu_xmit.c b/drivers/staging/r8188eu/hal/rtl8188eu_xmit.c index 8e4a5acc0b18..6d1f56d1f9d7 100644 --- a/drivers/staging/r8188eu/hal/rtl8188eu_xmit.c +++ b/drivers/staging/r8188eu/hal/rtl8188eu_xmit.c @@ -149,7 +149,6 @@ static void fill_txdesc_phy(struct pkt_attrib *pattrib, __le32 *pdw) static s32 update_txdesc(struct xmit_frame *pxmitframe, u8 *pmem, s32 sz, u8 bagg_pkt) { - int pull = 0; uint qsel; u8 data_rate, pwr_status, offset; struct adapter *adapt = pxmitframe->padapter; @@ -295,7 +294,7 @@ static s32 update_txdesc(struct xmit_frame *pxmitframe, u8 *pmem, s32 sz, u8 bag ODM_SetTxAntByTxInfo_88E(&haldata->odmpriv, pmem, pattrib->mac_id); rtl8188eu_cal_txdesc_chksum(ptxdesc); - return pull; + return 0; } /* for non-agg data frame or management frame */ -- 2.25.1