Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp5092476ybv; Tue, 11 Feb 2020 09:02:55 -0800 (PST) X-Google-Smtp-Source: APXvYqyBQyv1NUdAHgAzTg6Yr8CtUzwDC1Q6xqzs5T5KITUi4qidltv64ff8yq0IRmaqtWCxF4Ln X-Received: by 2002:a05:6830:13d3:: with SMTP id e19mr6011299otq.135.1581440575355; Tue, 11 Feb 2020 09:02:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581440575; cv=none; d=google.com; s=arc-20160816; b=x5Y6stLnoSTLVgu1IzawQj0QZ20d5CZ6BauwGNSH2YYWZVZTEhFmFbFKd6lhPD3xxH SchNsobgAQHMzBovKrVi7GSKgwJ073cEQ7XlYX6qFWygsmN2EzwkFX0E4+NZpbwLfYmP SHbO4kx3tZZP71+hBIllLQlQthYhlbwMDrnwollhdTZBS2aj/oIqmDCm8bXU7x5+3D3L oIjTvYLPSCtmPITLcU9XcaMJH4TM5mRnWog8yrwQVCSXbbTJeV0JkidGs8V8xeRfl18c o4cgt2WRdEeLOj0Z5HHCRgdNkDVd9LGsOYdTeqEV4+LTnXwae+xBSwQJXkPPWu/cxdx5 +JBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:in-reply-to:subject:cc:to:from :date; bh=PU4w83xT0YSgz/4VDGDZUtMlcdXqLhRiPmftoxLsAfU=; b=Naz0OcNJINM2ohQGbhZLDkYnt9Q4MDdsPW+4ctaPxBpxoGWtxFy98UHCO5uWUTGJqs lEla6Bjg5uNRGfX/YnZCeaSqINrEeYh4+ERNHarhwX6vtFqdeY7SrTTiqbrQ8DOUFB5z gLZI0ztnkh/FFwngBXI4ovMWJk8fytaYkC3XhBsLPzln5hBj3jf2uVXuzBBwvJcwQ00d E7wuaOyBVB5wp8w9XQKtZohHiHxIIET0Hv4/KVL5I0+KeJ6o0VoPaQX5/eQ1mEVLcch2 XcCDSGdRAN6aouBLSvKk4IdWdxwbbo09F9sEKj0z3cuHUSNJsCqFPGNIWl1GdKMOOn8g JKVQ== 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x20si1959042otq.222.2020.02.11.09.02.32; Tue, 11 Feb 2020 09:02:55 -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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728841AbgBKPtE (ORCPT + 99 others); Tue, 11 Feb 2020 10:49:04 -0500 Received: from foss.arm.com ([217.140.110.172]:48340 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728348AbgBKPtE (ORCPT ); Tue, 11 Feb 2020 10:49:04 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 7EB5030E; Tue, 11 Feb 2020 07:49:03 -0800 (PST) Received: from localhost (unknown [10.37.6.21]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 02D3A3F68E; Tue, 11 Feb 2020 07:49:02 -0800 (PST) Date: Tue, 11 Feb 2020 15:49:01 +0000 From: Mark Brown To: Colin Ian King Cc: alsa-devel@alsa-project.org, Jaroslav Kysela , kernel-janitors@vger.kernel.org, Liam Girdwood , linux-kernel@vger.kernel.org, Mark Brown , Peter Ujfalusi , Takashi Iwai Subject: Applied "ASoC: ti: davinci-mcasp: remove redundant assignment to variable ret" to the asoc tree In-Reply-To: <20200210092423.327499-1-colin.king@canonical.com> Message-Id: X-Patchwork-Hint: ignore Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The patch ASoC: ti: davinci-mcasp: remove redundant assignment to variable ret has been applied to the asoc tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-5.7 All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted. You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed. If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced. Please add any relevant lists and maintainers to the CCs when replying to this mail. Thanks, Mark From f4d95de415b286090c1bf739c20a5ea2aefda834 Mon Sep 17 00:00:00 2001 From: Colin Ian King Date: Mon, 10 Feb 2020 09:24:22 +0000 Subject: [PATCH] ASoC: ti: davinci-mcasp: remove redundant assignment to variable ret The assignment to ret is redundant as it is not used in the error return path and hence can be removed. Addresses-Coverity: ("Unused value") Signed-off-by: Colin Ian King Acked-by: Peter Ujfalusi Link: https://lore.kernel.org/r/20200210092423.327499-1-colin.king@canonical.com Signed-off-by: Mark Brown --- sound/soc/ti/davinci-mcasp.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/sound/soc/ti/davinci-mcasp.c b/sound/soc/ti/davinci-mcasp.c index d9c3a3210a24..734ffe925c4d 100644 --- a/sound/soc/ti/davinci-mcasp.c +++ b/sound/soc/ti/davinci-mcasp.c @@ -1765,10 +1765,8 @@ static struct davinci_mcasp_pdata *davinci_mcasp_set_pdata_from_of( } else if (match) { pdata = devm_kmemdup(&pdev->dev, match->data, sizeof(*pdata), GFP_KERNEL); - if (!pdata) { - ret = -ENOMEM; - return pdata; - } + if (!pdata) + return NULL; } else { /* control shouldn't reach here. something is wrong */ ret = -EINVAL; -- 2.20.1