Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1052417imu; Wed, 23 Jan 2019 09:59:25 -0800 (PST) X-Google-Smtp-Source: ALg8bN7Ybhug9HiJ/LeKjyP+bvvzR50W0f/j7ku/y3EBNFu+QbI0lP/mYjT5AbgToCAFOw889BbB X-Received: by 2002:a17:902:128c:: with SMTP id g12mr3062417pla.146.1548266365348; Wed, 23 Jan 2019 09:59:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548266365; cv=none; d=google.com; s=arc-20160816; b=Y1Zxw0igJqwyirpQf+W21UGUuSEtHuiIbIpFKWbWAk6rTtGu+trM1+DYSfwcyNe3ZE 2+O4LU086itJWijGierBPeV2MjeG8ulndPBnXDPHzuEvif3F4D9wgMkIagSQ1L+EX4hj vn1jqoIM4Wz75cGTwzxMn/UMiQ8QChfPL8a2Tnv7jPoGq/BFkcs04uJCfK/dKKfT8p3h X71TswpbAbYJ9EuizKqRZNjs5ndnz+I8EgpeAt/lIrNbxkqSmjMnLpUyNmeJLuBF8DiA KJn5cuJuvCN+9wuu1dzI4adyR4BDZgtbVOX8/TJ0mELghOdLL4p3jZgbs2tmoLTrpmyn evzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:message-id:in-reply-to:subject:cc:to :from:dkim-signature; bh=FDVGUh97QlabIV1YIkxnB38rVPUOuVzxvF1p0Xb8kr8=; b=0N/0UDpfkymbTlAqk38KBRNVV+byldfyD6B+pwZ+xiAfrZQWiwiMbMEiEV1tEu7uuD lrVvJqs4knyoWq3EJ2xzFnNvn+qbs8Zf33mqASsplf2joEwwQHcNQYnIeexO1G/ZD5xz vmxxyAJUTdEUv130qq6r1IC2I2imp5ijjOZkKiYz9OHg/5Tmvh/sH9wQlZDWt/81H6EW +1e29Ly1LpiLsW9mUX3Mnim2LTu9arV/L4CHhhAjV/aQ1rLMxTE++IDCxaCW8EKt3A4t Ou4HmI+81mBhnKx8ERUmQ56kPKHHx/FV2KM/BP52oI0Ip3LufISerehdWNie6TwPR/hf VO9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=v9xI2SBL; 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 u129si18487659pfu.117.2019.01.23.09.59.09; Wed, 23 Jan 2019 09:59:25 -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; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=v9xI2SBL; 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 S1726948AbfAWR6P (ORCPT + 99 others); Wed, 23 Jan 2019 12:58:15 -0500 Received: from heliosphere.sirena.org.uk ([172.104.155.198]:46416 "EHLO heliosphere.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726899AbfAWR6N (ORCPT ); Wed, 23 Jan 2019 12:58:13 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sirena.org.uk; s=20170815-heliosphere; h=Date:Message-Id:In-Reply-To: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:References: List-Id:List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner: List-Archive; bh=FDVGUh97QlabIV1YIkxnB38rVPUOuVzxvF1p0Xb8kr8=; b=v9xI2SBLXKzb 6V8rDf1e1/oqByQo+wjqcTGLBeuZWjMt0Uk8OjASAgzqSlgVykZ2+ypKJd2V5D2wvmT5F6+6KzuN4 kCaazOlBRzzXJnuW3TU8OxgnZ8FXsOXHFgtzqXQGOFK2C2nHoIXQ9xMzq07WRrnt+Ok5YzeloXhRX xASAI=; Received: from cpc102320-sgyl38-2-0-cust46.18-2.cable.virginm.net ([82.37.168.47] helo=debutante.sirena.org.uk) by heliosphere.sirena.org.uk with esmtpa (Exim 4.89) (envelope-from ) id 1gmMmn-0006qq-FW; Wed, 23 Jan 2019 17:58:01 +0000 Received: by debutante.sirena.org.uk (Postfix, from userid 1000) id 7DF351127ABA; Wed, 23 Jan 2019 17:58:00 +0000 (GMT) From: Mark Brown To: YueHaibing Cc: Mark Brown , broonie@kernel.org, eric@anholt.net, stefan.wahren@i2se.com, f.fainelli@gmail.com, rjui@broadcom.com, sbranden@broadcom.com, bcm-kernel-feedback-list@broadcom.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rpi-kernel@lists.infradead.org, linux-spi@vger.kernel.org, linux-spi@vger.kernel.org Subject: Applied "spi: bcm2835aux: remove unneeded NULL check of devm_clk_get" to the spi tree In-Reply-To: <20190123070507.15404-1-yuehaibing@huawei.com> X-Patchwork-Hint: ignore Message-Id: <20190123175800.7DF351127ABA@debutante.sirena.org.uk> Date: Wed, 23 Jan 2019 17:58:00 +0000 (GMT) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The patch spi: bcm2835aux: remove unneeded NULL check of devm_clk_get has been applied to the spi tree at https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git 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 bfc7af6d6df8d75b9c693b8eb98c21aa75c1e377 Mon Sep 17 00:00:00 2001 From: YueHaibing Date: Wed, 23 Jan 2019 15:05:07 +0800 Subject: [PATCH] spi: bcm2835aux: remove unneeded NULL check of devm_clk_get Fix a static code checker warning: drivers/spi/spi-bcm2835aux.c:460 bcm2835aux_spi_probe() warn: passing zero to 'PTR_ERR' In case of error, the function devm_clk_get() returns ERR_PTR() and not returns NULL. Signed-off-by: YueHaibing Signed-off-by: Mark Brown --- drivers/spi/spi-bcm2835aux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/spi/spi-bcm2835aux.c b/drivers/spi/spi-bcm2835aux.c index 671e374e1b01..f7e054848ca5 100644 --- a/drivers/spi/spi-bcm2835aux.c +++ b/drivers/spi/spi-bcm2835aux.c @@ -456,7 +456,7 @@ static int bcm2835aux_spi_probe(struct platform_device *pdev) } bs->clk = devm_clk_get(&pdev->dev, NULL); - if ((!bs->clk) || (IS_ERR(bs->clk))) { + if (IS_ERR(bs->clk)) { err = PTR_ERR(bs->clk); dev_err(&pdev->dev, "could not get clk: %d\n", err); goto out_master_put; -- 2.20.1