Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp124300ybl; Fri, 9 Aug 2019 03:33:51 -0700 (PDT) X-Google-Smtp-Source: APXvYqwbjiNyryjECU3yee7jJVdGfHlYFzNGn5IRvq5rCoLpunVSsVai0dzHc0881bZDQ3YYn8H8 X-Received: by 2002:a17:902:74c4:: with SMTP id f4mr17565140plt.13.1565346831142; Fri, 09 Aug 2019 03:33:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565346831; cv=none; d=google.com; s=arc-20160816; b=qjRWIDuV90TknusDA94HzfFJE79kIysrMDhSShE4bNtBOVY84HH/HLtQGkxi9j7bAZ qkuzvKY5jbS2BAOu4gUNkyidotC3RyCLbzRIBGQYYLpLG9od5t4zclFgqQ23gbDUNzeg hRW9deakZxnvZieomu5CIB6bnYJWPdF+qLvCnWA9nYgYd+1TVSpH2gPalltRKGznPuY9 VWdflbL7hqu0m801HldNQVdSSdhV10+zvSgleRU9nMCUGszxoO4LhlPscOyNfYe7C+n1 pRzB7Mj1lavxrYTWmNKHyxhiW0As83Tz6VRfzs62yWSWMDjtaCbo2xPj+RvyyZ58hv7N 8qGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:message-id :subject:cc:to:from:date; bh=vS8P/KCOBYS7Ghu0AA8bTq5+2KYdT5Ev98vPYVONLxY=; b=FdtzGfvHhWtZxAaxjcAnas2J1v67XEqSBeyiUFNhk2EZzZtst7TWtawLARL6deI0Ae uuH7Y8yZHnKnsI0i+tAH3sx1IvptER65m6sQ/cXDxfgWCbE/UpsVXie6WSKpZVunP7I9 H7KP00mFtdiOObSzvREXYBC5rYwLVR3V/pUdsV8famMnc1BBC8OQNWkVGhb40QuWbEOY N/DZvH3vYcDEvCM7TNWrt+r4KoBzARdsCeN5okhqRzA0O0Fj89r0bd/Yz1/THUTer/ae XAZREb/e8Zd+nltLOihwOvsTPOfc/WlQfHMf+ntd9Vmh84l35/Xue682luiX2zDTbuQc nyTA== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m2si48905770pls.391.2019.08.09.03.33.35; Fri, 09 Aug 2019 03:33:51 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2406318AbfHIKat (ORCPT + 99 others); Fri, 9 Aug 2019 06:30:49 -0400 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:6130 "EHLO mail3-relais-sop.national.inria.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726300AbfHIKas (ORCPT ); Fri, 9 Aug 2019 06:30:48 -0400 X-IronPort-AV: E=Sophos;i="5.64,364,1559512800"; d="scan'208";a="316007832" Received: from portablejulia.rsr.lip6.fr ([132.227.76.63]) by mail3-relais-sop.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 09 Aug 2019 12:30:47 +0200 Date: Fri, 9 Aug 2019 12:30:46 +0200 (CEST) From: Julia Lawall X-X-Sender: julia@hadrien To: Peter Ujfalusi cc: kbuild-all@01.org, Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Subject: [PATCH] fix odd_ptr_err.cocci warnings Message-ID: User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: kbuild test robot PTR_ERR should normally access the value just tested by IS_ERR Generated by: scripts/coccinelle/tests/odd_ptr_err.cocci Fixes: 62c9c1442c8f ("j721e new machine driver wip") Signed-off-by: kbuild test robot Signed-off-by: Julia Lawall --- tree: https://github.com/omap-audio/linux-audio peter/ti-linux-4.19.y/wip head: 62c9c1442c8f61ca93e62e1a9d8318be0abd9d9a commit: 62c9c1442c8f61ca93e62e1a9d8318be0abd9d9a [34/34] j721e new machine driver wip :::::: branch date: 20 hours ago :::::: commit date: 20 hours ago j721e-evm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/sound/soc/ti/j721e-evm.c +++ b/sound/soc/ti/j721e-evm.c @@ -283,7 +283,7 @@ static int j721e_get_clocks(struct platf parent = devm_clk_get(&pdev->dev, clk_name); kfree(clk_name); if (IS_ERR(parent)) { - ret = PTR_ERR(clocks->parent); + ret = PTR_ERR(parent); if (ret != -EPROBE_DEFER) dev_err(&pdev->dev, "failed to acquire %s': %d\n", prefix, ret); @@ -299,7 +299,7 @@ static int j721e_get_clocks(struct platf parent = devm_clk_get(&pdev->dev, clk_name); kfree(clk_name); if (IS_ERR(parent)) { - ret = PTR_ERR(clocks->parent); + ret = PTR_ERR(parent); if (ret != -EPROBE_DEFER) dev_err(&pdev->dev, "failed to acquire %s': %d\n", prefix, ret);