Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp395466ybv; Sat, 22 Feb 2020 05:54:58 -0800 (PST) X-Google-Smtp-Source: APXvYqz7xbpNxcViQE9RuZz+AEA/zqsLYgEtpaDHFEEDt1fUD6kllNdKh/MO8iMsYY9vYOAurrVV X-Received: by 2002:aca:c1c2:: with SMTP id r185mr6388730oif.19.1582379698807; Sat, 22 Feb 2020 05:54:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582379698; cv=none; d=google.com; s=arc-20160816; b=Tp0VbTa0rwalYupw/VpS8lviKg66iVQVlnyixGQX4y+kNjyOGvCQsP7jBshJa3CJRr QRBnCCCzNuv1Ged8ad02WugDSVQ8jhxP2nj66hpYUSqdU2tLW65PG2LohFnvtLqNJHGO WLmDCMURUkHI4E8NqfLW3m+8iTdBWgwSEmrnt3ac0ViLda6nALX2j6MLTklvdFhIyskP 5RrMjwt7LAMCDxFzRsNTea5kRCl5hPH0qw3EdB1270HmLtM+iHeNEnlBylsphnv1ovUe R7qkj13UkMU0m2K4PRFaPE1oOQecP7z9EQgFVpBeBW9B6ERrxk0huJFkoUuUdufX+B5T k2KA== 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=1pLPPRAwjfPdbhm2Mobs8yhmLBBB8U03SOn0NieASQE=; b=fo8DiomdLJ6RtWTfjCPY8pfhU/P08cR1kPiTKVxhbnZLo9eTxA4xy093nzb3OyB/T4 ZjlVgRbw/6M7v3NI6+NCH3nnbdFAMAWLIAgflsCfSt9MNChqONMV2fBBFu94tcX+Aat2 ANJHYeYjzruXWqgAQc6wSzQnGSBKSPC0bERJcocH4lH2LOwaQ43DDxS8dSA162V2xwUT LU0gvdjj4vcCThMfTid1vfzeGVZR56rUCPbn3W8HNpWimCIQ8JeVF9bzpSV8XFfS1FoQ bvCfvn3yDo+VN/SariMqcsWLQ+bN6EVxKgfUfU214cuu8GvuzEbFkw9x2IOYHdEHq6me fNcQ== 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 f5si3189210otp.129.2020.02.22.05.54.44; Sat, 22 Feb 2020 05:54:58 -0800 (PST) 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 S1727378AbgBVNyY (ORCPT + 99 others); Sat, 22 Feb 2020 08:54:24 -0500 Received: from youngberry.canonical.com ([91.189.89.112]:54221 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726839AbgBVNyY (ORCPT ); Sat, 22 Feb 2020 08:54:24 -0500 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 1j5VEb-0001Ce-26; Sat, 22 Feb 2020 13:54:21 +0000 From: Colin King To: Bin Liu , Greg Kroah-Hartman , Matthias Brugger , linux-usb@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] usb: musb: remove redundant assignment to variable ret Date: Sat, 22 Feb 2020 13:54:20 +0000 Message-Id: <20200222135420.135692-1-colin.king@canonical.com> X-Mailer: git-send-email 2.25.0 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 ret is being initialized with a value that is never read, it is assigned a new value later on. The assignment is redundant and can be removed. Addresses-Coverity: ("Unused value") Signed-off-by: Colin Ian King --- drivers/usb/musb/mediatek.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/musb/mediatek.c b/drivers/usb/musb/mediatek.c index 6b88c2f5d970..6af3a346d4ce 100644 --- a/drivers/usb/musb/mediatek.c +++ b/drivers/usb/musb/mediatek.c @@ -444,7 +444,7 @@ static int mtk_musb_probe(struct platform_device *pdev) struct platform_device_info pinfo; struct device *dev = &pdev->dev; struct device_node *np = dev->of_node; - int ret = -ENOMEM; + int ret; glue = devm_kzalloc(dev, sizeof(*glue), GFP_KERNEL); if (!glue) -- 2.25.0