Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp1841244pxb; Thu, 7 Oct 2021 16:44:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJylHE7l83JmRD6EpvJ9UYAZoqz1NUwt1dMEEPWQUBZkq2ShDeQBXav56q/c5x12il8fm5vt X-Received: by 2002:a05:6402:5249:: with SMTP id t9mr10328746edd.135.1633650261297; Thu, 07 Oct 2021 16:44:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633650261; cv=none; d=google.com; s=arc-20160816; b=xXxItHbpuCURyCZvHANPHfMTx9pMK+W5L3oFL2uCu/IfLXlNT1TZCVmLXiEVk+jJtT YNmRsaUmXh5aEY0EhCUMs3SV9DbBhrGaAptU6iGddQ5G/wONqtWyr/pVCBdldXYJgsE2 uJ2Z5XTgxt8t2Joo/OD7vRfWhcnuaK+Pp3SIXprJPEBAaq21mXyUeoeyLET1gYSdRzWG qMOuwvfUVvP/uofbxuo8c04aP+Gy6QUuGSkti8gPqcNFUs8OUHdGAw/Dl21ufmuPL2Up cyxarxueMIUnA1AKJygY57pvR1dEzfmT5FiyCYVDNyNALTg+k02GZNdRdkK8J2IEuWiJ DcoQ== 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=xcI8ZGeSFCk6ZEUuzxl7/qYwHZsqf/PSG6Ov6OHHj+c=; b=HA2z13Dx3G4pdrklgFDzQoKe+qIZzKo5okYN+uI2Elsz9A5zEf+geKYKi3eCQ23+Ao kc2EUf7we/3AopOYfLCLUmQCbsq10BWnzAxVrQjXKwKCpa9rVHwBwJrzHWbjtSgjVyI4 UTMSD0phmKJNPP9VoVybADiRQ/9icNYdhNPyDkq6fPwzByvQ0D0pWjqgWClIleQPDPLY wcgphB791WRwKTkbW6XA3OQg9UO22wyOMtW+rzxyHLGqexyEJCCLW1jxIgdg4p8JmGFh 5goKOVVeA10NVpCNVDbYPhKgxhOY8IvaDcPdLc9bObqMffqZTpVU/Y9cBTj0tDl9FNAY G38Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=BQiKBs9m; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r5si979909edh.36.2021.10.07.16.43.57; Thu, 07 Oct 2021 16:44:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-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=@canonical.com header.s=20210705 header.b=BQiKBs9m; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236999AbhJGXnu (ORCPT + 76 others); Thu, 7 Oct 2021 19:43:50 -0400 Received: from smtp-relay-canonical-0.canonical.com ([185.125.188.120]:36202 "EHLO smtp-relay-canonical-0.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229778AbhJGXnt (ORCPT ); Thu, 7 Oct 2021 19:43:49 -0400 Received: from localhost (1.general.cking.uk.vpn [10.172.193.212]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-canonical-0.canonical.com (Postfix) with ESMTPSA id BEA443F226; Thu, 7 Oct 2021 23:41:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1633650113; bh=xcI8ZGeSFCk6ZEUuzxl7/qYwHZsqf/PSG6Ov6OHHj+c=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version:Content-Type; b=BQiKBs9mshkGku5TLdxn8jGHo9Yi/4GPqHXGx1oRJUNuRW8z1ZcHZyP5tQZ86tRi6 TlQb5HDR9kPEYFEfEY6EZT7iAG1vMiZbd+1+YYwU/SWlTjkmquB9O+sjrwtfebBmJI Ck5rfbED65Ls+eA5fWWPc752AmcyL2HNWLUCjH26DmqHKwpJxGtN9JrI1opsQUQcAx W0nJ9Nn1HurvlZRVkQez9WPti919HJZQMgW5kBRDe+KwgS8znuVMjTbevPqmJAdJlA uoXfVOeH1j4khNn+rVZiHJB6p6F5qhUoXeCmyN1CZtHdq8x54DB1vB4QPQFejn+hA8 9VDH23jU9oBBg== From: Colin King To: Jakub Kicinski , Kalle Valo , "David S . Miller" , Matthias Brugger , linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] mt7601u: Remove redundant initialization of variable ret Date: Fri, 8 Oct 2021 00:41:53 +0100 Message-Id: <20211007234153.31222-1-colin.king@canonical.com> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: Colin Ian King The variable ret is being initialized with a value that is never read, it is assigned later on with a different value. The initialization is redundant and can be removed. Addresses-Coverity: ("Unused value") Signed-off-by: Colin Ian King --- drivers/net/wireless/mediatek/mt7601u/dma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/mediatek/mt7601u/dma.c b/drivers/net/wireless/mediatek/mt7601u/dma.c index ed78d2cb35e3..457147394edc 100644 --- a/drivers/net/wireless/mediatek/mt7601u/dma.c +++ b/drivers/net/wireless/mediatek/mt7601u/dma.c @@ -515,7 +515,7 @@ static int mt7601u_alloc_tx(struct mt7601u_dev *dev) int mt7601u_dma_init(struct mt7601u_dev *dev) { - int ret = -ENOMEM; + int ret; tasklet_setup(&dev->tx_tasklet, mt7601u_tx_tasklet); tasklet_setup(&dev->rx_tasklet, mt7601u_rx_tasklet); -- 2.32.0