Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp673670ybk; Sat, 9 May 2020 14:59:44 -0700 (PDT) X-Google-Smtp-Source: APiQypJCd0qU9Scorv1gyya0sFk9wpZLHmovrgnXE6n6x45asTepyODyT9nfK1NumIahu6Le8yWn X-Received: by 2002:a50:f98c:: with SMTP id q12mr7999224edn.172.1589061584512; Sat, 09 May 2020 14:59:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589061584; cv=none; d=google.com; s=arc-20160816; b=bcY079PJOJ/bFoU0scHL1eeolSITaK/fILWUNHXcdX5+E5iEw2DgNHeLyv9t4Vwp0a QsZKGh3hG6eyx3VBdloLM4xjIr6kVIitFZ+UXxR8CNsmqw5+uMVYQhVJRSt5KLmmOq6N g3FTaGeanGsfBXSsRqLkoXLeVKZLJcabn42xTKr05EpIjkENpP+L9Zg0uuJ50UdpzeNA WDOA4Ls6pVPWDxtxNrh1l0hRqkD4o4gt/spE3wZmm8rNUyK4cZMG/U9RPaupsyx8Vv1S Z0FTYKcliKXYcxxaroU2qGdujEkTC8V642yWZFCmLRuAVhs47oaSxvsWd6zigZtUS7g5 DmGA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=R41GuSe7db6S1RcfCfBwgwkgc8RCnBniizk0FyGUJwc=; b=1BKDiXhAs8aa5p9si9zA2WY9HOUscSg0IqgUZWk06N9aKjq1A2RwQpYHahfMOn0dqp TqPvsbEMDTnXqMCC4lxlkTI3NVqUti+2XuUGHf0OD/pmMObPxBd/X//Yy6RntWWjtMUu MgBPWB1SL62sF9e9Dx9To/8SBJeM2yOEbxJQ75f0I6XXWqshGSlEz5AegPIo4cqBUZpN +cgl0oooKykSbbBPAasltPLZjWEBiK7fjwPVPAz6p6ENibfPq0y2rFBZ3VTA/AhoMoAo TEdRBtKR7sOv94MJHtKwUshsLL8kzr/g84phLqyK/aPQma4P0wnyp9z/ZYmOMp0Nfcwq 5nMA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (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 t14si3685900edi.331.2020.05.09.14.59.22; Sat, 09 May 2020 14:59:44 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728667AbgEIV6C (ORCPT + 99 others); Sat, 9 May 2020 17:58:02 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:50199 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728408AbgEIV6B (ORCPT ); Sat, 9 May 2020 17:58:01 -0400 Received: from 1.general.cking.uk.vpn ([10.172.193.212] helo=localhost) by youngberry.canonical.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1jXXTp-00055M-0t; Sat, 09 May 2020 21:57:57 +0000 From: Colin King To: =?UTF-8?q?Bj=C3=B8rn=20Mork?= , "David S . Miller" , netdev@vger.kernel.org, linux-usb@vger.kernel.org Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] net: usb: qmi_wwan: remove redundant assignment to variable status Date: Sat, 9 May 2020 22:57:56 +0100 Message-Id: <20200509215756.506840-2-colin.king@canonical.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200509215756.506840-1-colin.king@canonical.com> References: <20200509215756.506840-1-colin.king@canonical.com> 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 The variable status is being initializeed with a value that is never read and it is being updated later with a new value. The initialization is redundant and can be removed. Addresses-Coverity: ("Unused value") Signed-off-by: Colin Ian King --- drivers/net/usb/qmi_wwan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/usb/qmi_wwan.c b/drivers/net/usb/qmi_wwan.c index 4bb8552a00d3..b0eab6e5279d 100644 --- a/drivers/net/usb/qmi_wwan.c +++ b/drivers/net/usb/qmi_wwan.c @@ -719,7 +719,7 @@ static int qmi_wwan_change_dtr(struct usbnet *dev, bool on) static int qmi_wwan_bind(struct usbnet *dev, struct usb_interface *intf) { - int status = -1; + int status; u8 *buf = intf->cur_altsetting->extra; int len = intf->cur_altsetting->extralen; struct usb_interface_descriptor *desc = &intf->cur_altsetting->desc; -- 2.25.1