Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp11999357ybi; Fri, 26 Jul 2019 03:07:18 -0700 (PDT) X-Google-Smtp-Source: APXvYqws7Cmd/SBmrl2LRj8QvHADNH193EjfIzkVMePr1Wg/GiZ75yJPU3hfWPtF4mQ5Zx6Gi6Sj X-Received: by 2002:a65:4b89:: with SMTP id t9mr21498517pgq.55.1564135638064; Fri, 26 Jul 2019 03:07:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564135638; cv=none; d=google.com; s=arc-20160816; b=VLsxyzSQFuRaeQNPtEF8Mp5JQ+5bUw+wNpFiDIcf6KNJYMdeZlRDJXaD3a0SDdJzsp SvSOwbNFlZVm1WJOvwmufYPQYCDWfct18sYRfk7PLu1gGii9qRx93zp97ueI2CjS5wIr wZJnMqYIIQ0aM93HwgiW8s3B8Xr9U6sG1ajhOam3sLXcIyE6BhtdO6zH8cGiF7jkLCdy 8gU5oE1r8NCCsxq4xbuHmTtRSsnLz+tuj1gjUQrjoNXUmL6Xgx9rwX72+7UBsYE/eR+u L2pTb5A1N/r9CyVGaEnw3UjxGj44cONP2owO/PMEduU8KjYPNGeHcubHa7qb+LhBdTO/ uWcQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=UyT7ykYdOShSbwOkliciG7tJi6lSXe4RXSEd7vXUMwo=; b=WvVhn7i6qd4n7hnaOLK/mqvwK2vOvqq+C+fCEy5C0ITPpG/eCQrp/reWF65Xk45fbC ObJH1e5PpTeEkDnuoPPasRmqJsnBv4nrwVPP9y/XwoPZrPot41xKKrg9EoWeqS3Eycv9 AomoCcWVOXr+PzdJppnCoySNAnW/RDjLAmP+j4XOS0Zm7EesGMXZFjak2Ikm6Wi4FhIg C28maRRnr/3LajIU607l6nH12sUmmQu/LwrfFzpyNHeJKcer+M2DJcgrkbZjtdvoimRs APlKfsaM6SN9OUOmU4UITXkTfL4xSDfR3pSWaKP7TkCZ26SE9Xg1//NvuHFafPPnXODP vDdQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n1si13544573pgf.237.2019.07.26.03.07.03; Fri, 26 Jul 2019 03:07:18 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726193AbfGZKGT (ORCPT + 99 others); Fri, 26 Jul 2019 06:06:19 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:42843 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725953AbfGZKGT (ORCPT ); Fri, 26 Jul 2019 06:06:19 -0400 Received: from 1.general.cking.uk.vpn ([10.172.193.212] helo=localhost) by youngberry.canonical.com with esmtpsa (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.76) (envelope-from ) id 1hqx79-0000EG-8x; Fri, 26 Jul 2019 10:06:15 +0000 From: Colin King To: Stanislav Yakovlev , Kalle Valo , "David S . Miller" , linux-wireless@vger.kernel.org, netdev@vger.kernel.org Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] ipw2x00: remove redundant assignment to err Date: Fri, 26 Jul 2019 11:06:14 +0100 Message-Id: <20190726100614.6924-1-colin.king@canonical.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Colin Ian King Variable err is initialized to a value that is never read and it is re-assigned later. The initialization is redundant and can be removed. Addresses-Coverity: ("Unused value") Signed-off-by: Colin Ian King --- drivers/net/wireless/intel/ipw2x00/ipw2100.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/intel/ipw2x00/ipw2100.c b/drivers/net/wireless/intel/ipw2x00/ipw2100.c index 75c0c29d81f0..8dfbaff2d1fe 100644 --- a/drivers/net/wireless/intel/ipw2x00/ipw2100.c +++ b/drivers/net/wireless/intel/ipw2x00/ipw2100.c @@ -4413,7 +4413,7 @@ static void ipw2100_kill_works(struct ipw2100_priv *priv) static int ipw2100_tx_allocate(struct ipw2100_priv *priv) { - int i, j, err = -EINVAL; + int i, j, err; void *v; dma_addr_t p; -- 2.20.1