Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp3121283pxb; Mon, 6 Sep 2021 12:53:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzah0WxPEsnrGeo2oOpshOIUmCGSF++2weNIPPezcEtfVIlK666SqIMXeD9lDrj2CAz1XJV X-Received: by 2002:a92:7f08:: with SMTP id a8mr8859480ild.125.1630958026190; Mon, 06 Sep 2021 12:53:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630958026; cv=none; d=google.com; s=arc-20160816; b=P5Oguy/yXAKOzBZZJPNx8KJ56tl/qDcSbccz274cmRxoAqmwUWVoUHYbuCe1ROXg9R Q398JNtv1HEZzCYj3MWkljs1G9/uRFwqvm9WDfH5N4xCOClBSXcXxLzUdq6Of7PVgVr8 vV5vYWgwa5uHTZMbHHK20z+Nu54EAS0r2bjxXI5lHMEHZUvsH3HO3Vo0cafv6Zzn5l9n GDf5OIfrlA9wXL7HA3oDHYHw/uruhqWtgGUyhDdU2/ryuLKARsGeTs6gE3ExjeiM7P8o UeXnOHAGlb3rKdBjsvj4khp9LRnqKOQrWdRfq+mS07Lp4xOTricjUgprUcJRb2hUjYHH DUzQ== 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=TwtcbicrqVzcOBpKF8LIDrbovh6REX7OM2xtMOK5yVY=; b=IXrT/t8AJSA2rthvExaNS1ncI9DgV3HKH1vW9rEjwgqlDM7tTwf4HqEwW03nrs6mdR FsWWAqMarSHgu3WuLQx/ef0bprmoZkxmWoBsQteG1m4iKWz4YHjgzZdVFHbKUrg+GBbz TVrodDQWxcbx1nCs0eeG7yj3hromu8IU2UZpfHMJqKmd8NphMDFVhPZbu2MVxYDNFRoP Lj1CQj7DLFeWIU0Qj/8x/bcDMbWk6jLw06AcSLHaagB1q4vjEXD1sLZiPXhS6sDCnMbs bGYvyHaqFxZ5nRuGpOA/Rmxk/K5wwdrxP8vzQCW//ax6t4QbIIdaNCMTmCyN3vkqaubO sDgQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=OyLQzHK3; 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 m24si1802142jac.82.2021.09.06.12.53.35; Mon, 06 Sep 2021 12:53:46 -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=20210112 header.b=OyLQzHK3; 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 S245563AbhIFTGV (ORCPT + 99 others); Mon, 6 Sep 2021 15:06:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38518 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343610AbhIFTER (ORCPT ); Mon, 6 Sep 2021 15:04:17 -0400 Received: from mail-ej1-x62b.google.com (mail-ej1-x62b.google.com [IPv6:2a00:1450:4864:20::62b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 91478C06175F for ; Mon, 6 Sep 2021 12:03:09 -0700 (PDT) Received: by mail-ej1-x62b.google.com with SMTP id jg16so15155904ejc.1 for ; Mon, 06 Sep 2021 12:03:09 -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=TwtcbicrqVzcOBpKF8LIDrbovh6REX7OM2xtMOK5yVY=; b=OyLQzHK3JgBRyB9+COmigSykd2tQ8sKimgm7NaGKG2Sijc+slNXGdj2ZK5/KzGf2TS Mo2RHg1HbD9QP96oCWMQJ9G/YjPb8H/NfT1Qax+yEoCZOosu8BWEnPul3xiPJ0IxlWY4 zz4HgtFK3+1UUbYkmXOKM/dAEJ0GbHRQU2Ae35jC4V4wSRSLeUXxq21y/tG3HKXaZcp0 bmhqsgIXVYuGgRLPiX70xhQA/IaxKuRDhIhy2Q4/FvQkYWc0dkcJRwUHiWTmtPCQjBNt b45AtLQEqAdxvbs2AtIrAcwISjTvw8G3oDgWbKnalPmwaArO0Z34ASQFexDS8AgjHdFh 9+RA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=TwtcbicrqVzcOBpKF8LIDrbovh6REX7OM2xtMOK5yVY=; b=fzD+1Nw/ZG6RdcDV4V307Mq7C1fFX/kz0AxgfNpfVT2UTgd+w1EMmbkR1kEyUhfaPg 7OUS9N5a+EA6XbqQEnGiskobvxRM8bOA2NeyhC+3E9jjJKzpamByR93kkA4poFBKCutM reVc601cjuNMKukeBJBY1Aet+hskgqI6D/MUww22ngk2zx3aglNPEw8s0SHGEg+re2mI Dzc3+l7dmRMwaOrrutqX1zL/iRWNuI1b4MshMk1nB33kZa6CLuNR/twnRKOrpXz9M3P+ MqgvWB6JRqnfR/twYr69/bHdFZQ28WyPxQOv4TX2hiMvOOfrYV3yrwCoLtvi7cc26ytc shHg== X-Gm-Message-State: AOAM530p83ZVSg+HM0dmxEcC1M2pQBDr3svPmgVwpLoll7gQM83AmLsv PX8aMBjFbTbAVxoq7rP4KJc= X-Received: by 2002:a17:906:2642:: with SMTP id i2mr14900238ejc.323.1630954988245; Mon, 06 Sep 2021 12:03:08 -0700 (PDT) Received: from localhost.localdomain ([2a02:8108:96c0:3b88::8fe1]) by smtp.gmail.com with ESMTPSA id k15sm4372018ejb.92.2021.09.06.12.03.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Sep 2021 12:03:07 -0700 (PDT) From: Michael Straube To: gregkh@linuxfoundation.org Cc: Larry.Finger@lwfinger.net, phil@philpotter.co.uk, martin@kaiser.cx, fmdefrancesco@gmail.com, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Michael Straube Subject: [PATCH v3 31/40] staging: r8188eu: remove useless assignment Date: Mon, 6 Sep 2021 21:02:14 +0200 Message-Id: <20210906190223.11396-32-straube.linux@gmail.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210906190223.11396-1-straube.linux@gmail.com> References: <20210906190223.11396-1-straube.linux@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The local variable badworden is set to a new value immediately after an assignment. Remove the useless assignment and initialization. Signed-off-by: Michael Straube --- drivers/staging/r8188eu/hal/rtl8188e_hal_init.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/staging/r8188eu/hal/rtl8188e_hal_init.c b/drivers/staging/r8188eu/hal/rtl8188e_hal_init.c index eb30a6fcd8d0..33d4e534f05e 100644 --- a/drivers/staging/r8188eu/hal/rtl8188e_hal_init.c +++ b/drivers/staging/r8188eu/hal/rtl8188e_hal_init.c @@ -1438,10 +1438,9 @@ static bool hal_EfusePgPacketWrite1ByteHeader(struct adapter *pAdapter, u8 efuse static bool hal_EfusePgPacketWriteData(struct adapter *pAdapter, u8 efuseType, u16 *pAddr, struct pgpkt *pTargetPkt, bool bPseudoTest) { u16 efuse_addr = *pAddr; - u8 badworden = 0; + u8 badworden; u32 PgWriteSuccess = 0; - badworden = 0x0f; badworden = rtl8188e_Efuse_WordEnableDataWrite(pAdapter, efuse_addr + 1, pTargetPkt->word_en, pTargetPkt->data, bPseudoTest); if (badworden == 0x0F) { /* write ok */ -- 2.33.0