Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp5866800rwi; Sun, 23 Oct 2022 13:34:00 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5vwbj0N24wicbDOQvBBqnci9HW9eNQvxRKxxRtNpLM0ah8Qyv0SxBCWjH9mZAWzp15oC0B X-Received: by 2002:a17:907:2c5b:b0:78d:3f8a:19d0 with SMTP id hf27-20020a1709072c5b00b0078d3f8a19d0mr24102048ejc.369.1666557239712; Sun, 23 Oct 2022 13:33:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666557239; cv=none; d=google.com; s=arc-20160816; b=zN+WDvwrBRSikj6oDrCifzIGn/WiMsOegl9lSAcNDI4++6JpHeOuhc7qIvtUgd9FBE lphE9SEVij+meI7cOYwRNub5xbfozHhy8v1c/g4eyssxcKEpK3g//Azau6R/pkT/vPck nYktbYkv5nMemkDMZtP8m1x5Ngdwe2fEnsXKyqGAXp3tlDWrmWf7KLEsu8vUHk1vpazu H4JOb4nnQ1Qts2IYxYm684oy3jv8cM8jJgnzolof5q/vnES2ri2DIZ63NBhxaBEXFoum CLYri22Lr6ekffvW2TlvDjmmuWyqfBQI2xJfWh75aPIRihHOMOlJFqly19mOgTF3a3If Krdw== 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=NnolCiMBjl8qX8ASTYaNnJALNGKZaQCXHfWumAnTsTM=; b=yZj19xtiKzfWoHrEiaS5OuyxpcM5K6PAEfe2RFk9GkNKgDOioDVXvKN/0rdu5vH3MK QAspUrppsRhr8++FVRMkPN/FEhkXFyVwl4GsKBhw5HrQcqmzBgNCcwCFLsAupnsuTlnc XaXsJjK0L+vDBQHryFy2+017+lXNNUa/P+gULCwbaNj5WVI+bKZ3vzvR8N+UhttkSPKH ZlFJ5p1vwHNG9EaDuaLiG56S/ZrmwVxGlGyiE9aihKkNza08UCSeGSspprhH4IEyBi3B ZVvRMI5hIOKqAXSkM+os8G9sSKgtyrq9ja2ytCzUnYCOuFiBkjoInBtuTeoVRWoK9N1R KniQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=iYtagsbc; 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 w14-20020a05640234ce00b0045cfa0b1f46si2807148edc.11.2022.10.23.13.33.35; Sun, 23 Oct 2022 13:33:59 -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=iYtagsbc; 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 S230481AbiJWUGH (ORCPT + 99 others); Sun, 23 Oct 2022 16:06:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40330 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230470AbiJWUGE (ORCPT ); Sun, 23 Oct 2022 16:06:04 -0400 Received: from mail-pl1-x633.google.com (mail-pl1-x633.google.com [IPv6:2607:f8b0:4864:20::633]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D082F5F9B6 for ; Sun, 23 Oct 2022 13:06:00 -0700 (PDT) Received: by mail-pl1-x633.google.com with SMTP id c24so6850591pls.9 for ; Sun, 23 Oct 2022 13:05:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=NnolCiMBjl8qX8ASTYaNnJALNGKZaQCXHfWumAnTsTM=; b=iYtagsbcU/h0TyJgU4pXRWZSC4sr8vpuy8Tn3ao6ioil6LBbPMIzwZjGjaql/4vVbz RiifYv5fBiYrgFc2P2oWJNn/T+vBIVqf9FQc2fNCXMUXL7a6o9BW3G5L1Ql44Ha0MGLi FbKjRmtpeIXFP7IadMrxTXTjIV8Ynbz9pHSjvcUm3eQ7AbO6pEVF5+uC1qtCcpo6RidW Eq8HzFkUQ612Z/sF9GTYbaav5q06ZkNwUyqWAocx4IUOBRaiim7t7lJQVzvMzDsDxf/1 ERJsClRVDGY6LtbCSYHTmLftNqyPr+yOUjfpPJloS3RqHW77xMTLz9FR+dRTjcg/cSMf RsYw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=NnolCiMBjl8qX8ASTYaNnJALNGKZaQCXHfWumAnTsTM=; b=Iztkf1WcACF2JSemwGkU9Jc0Wv0JSeFV1bNfq7ySvDiEf/EjFClXKfaefJqmpB7ckZ Z7RsL6Hvckj5gRixTQTTvXvFNC3P3oOKyBE4JGj3zerycPN6XM3x9OQIcWGfKDQIGHua 2x21tLkbMcKMIvrbxIg6JtiVhfjPBXrNIDiNxphycT8meoZndwSj1MXKsfjUuLL2UZ46 qeA3FI1mnOepkystp/DvSyGCaj2xS1Cqr4zEnmymDvMnKsBUDCJ6379JBSY9XzCblbAe lHvmObp5sPyeKHLGpI5KW5u4E5YWvVKR/8MpNTSb8aeVJmtcxKtuWULak20eGqWf+Yyi Tdiw== X-Gm-Message-State: ACrzQf2GAYNw77KHjOptgEwG5TM4yXWkoiO6tNZc78lH51j8Rz/dmLo1 r8w3Z0r644Cf6xcX/uGaZaM= X-Received: by 2002:a17:902:f786:b0:180:6f9e:23b with SMTP id q6-20020a170902f78600b001806f9e023bmr30930599pln.37.1666555558692; Sun, 23 Oct 2022 13:05:58 -0700 (PDT) Received: from uftrace.. ([14.5.161.231]) by smtp.gmail.com with ESMTPSA id e13-20020aa798cd000000b0056bc0578c7dsm1130649pfm.110.2022.10.23.13.05.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 23 Oct 2022 13:05:58 -0700 (PDT) From: Kang Minchul To: Larry Finger , Phillip Potter , Pavel Skripkin Cc: Greg Kroah-Hartman , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Kang Minchul Subject: [PATCH 3/4] staging: r8188eu: remove unnecessary variable in rtl8188eu_xmit Date: Mon, 24 Oct 2022 05:05:31 +0900 Message-Id: <20221023200532.259276-4-tegongkang@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221023200532.259276-1-tegongkang@gmail.com> References: <20221023200532.259276-1-tegongkang@gmail.com> 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 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 Return 0 directly instead of storing it in a variable. This can prevent cocci warning as follows: Unneeded variable: "pull". Return "0" on line 298 Signed-off-by: Kang Minchul --- 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.34.1