Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp2916171rdb; Tue, 6 Feb 2024 01:22:09 -0800 (PST) X-Google-Smtp-Source: AGHT+IGYKdCoM5ZyepPEkMzOh5qmyUOq+CaZS0vmJt4YOJO05qdGDUrp2VGUseeEB5wzgTxyw3+7 X-Received: by 2002:a05:6808:1b1f:b0:3bf:e460:c0fc with SMTP id bx31-20020a0568081b1f00b003bfe460c0fcmr1455145oib.1.1707211329487; Tue, 06 Feb 2024 01:22:09 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707211329; cv=pass; d=google.com; s=arc-20160816; b=Qyj4QUFCMIR9RiDb9BaFEMvfgWeue2so1gqzUCaBQvSzWG5CwZUeJLNkAlbS+szrf9 kXwViAECL1sFCwlAyRTpj1sekt+GpSSkZgR6R9+xHOeuocCaoPn9sEEZhXB/LPtCO26/ N9gXYQ5+wJypY8PcBkcwzOKNojxoLY4Q+jKzQETrhkBeUszalTROq4Y2227YHoSprxyi QzbY7172k04vV2NNw7gALzWe7qTx5tqtb/UT5i6IoxvUTYhwmn9I3xJf4/RphCvhjb47 HHas3ZQ0keX4cmKHi5hMXd6xhr6FXi/9eJeW1bk6YL7dsmuPmHaEnL77cKzmFPAIfYck vf6Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:content-language:from :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=uDsaVR38svTsz4pcQH9+ptOLq+3HX4qT7G9cHrB24fk=; fh=ERvuFNTAKOjSVP4FMU/uD+5QJwwXYvrcBTKtzr0r7K0=; b=rFb11j/avaPKMX8E8gdBRk+XEXcKL8aBru3wp1nH1IUNf2bdMDZgRs0Q5VybfWFenA 0Jc+ht5S1jiz77J6bsbAYunVfRKvY24tGz3Xin/RHupDCy3J215nPpWx8+teiaxq3QiW 7tPdEQruQFjMiLXr3YzmtMUk2gluT7iV6Bxtx0G+dmfXpvVRv+0rsAImJYoTf4g/MN6b gMWuDXwsSP1JL+5Tpu4LKBfPxX1+OOSF96S1ODInIc4cUhB9Dzf49WI84PvMmjsBakms Ntc5Wn3ABkOfSTShnxo75JGb1303HmwxdaDfFdWihXFQcbOcnsqPLxrt+yazRt5kgpQI gmxQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=pXgSMjur; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-54577-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-54577-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com X-Forwarded-Encrypted: i=1; AJvYcCV/veY031s1sZbrO+239hmryEwuyCUwGbOrY1BCvlNj++03nG+AypHWY3e464N3kJVj7OUKVWWPFd2L4D6Tmr5hqw2lZ/jetR8fO0vxPw== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id b27-20020a631b1b000000b005d6d6f8cbddsi1413821pgb.360.2024.02.06.01.22.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Feb 2024 01:22:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-54577-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=pXgSMjur; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-54577-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-54577-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 780E82856A8 for ; Tue, 6 Feb 2024 09:22:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 87EE512D166; Tue, 6 Feb 2024 09:21:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="pXgSMjur" Received: from madrid.collaboradmins.com (madrid.collaboradmins.com [46.235.227.194]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2B94612D143; Tue, 6 Feb 2024 09:21:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.235.227.194 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707211284; cv=none; b=Lg/mknpggZDIqgR80spIypJTX+88RqlgdRRHf5nZrQp1dApGOW3QW0FqdTFUl6OYEzTwSg8uPgc53N0meh0q29CIPDxbsMHdMVC5M/JNOOO4Y8RZ0AE9zDPPn9RhAVz44WKaytXtyArfMwNm7hxNieGxk4f/khuDgIsj9X2kh9c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707211284; c=relaxed/simple; bh=GhYT5UYlUwjUnGnJLzVb+yqrzxe5xuH4W1+Hl/X1RiU=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=TQCWviF1Q/jGogkMHJq9DyG6PhV31FpAcfx5k3BeSIIn4Em+AAmI2XEUbNV8TU1eJa480H3JT22oTifJOI/8uW2ThJmxkvO5amFrkWFM7nar0LB3EOULW4sBIr7y7h7ome1ASVgbfLUfXy9RB4oi/SYbj10qv9ywus6X/3R8O+0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com; spf=pass smtp.mailfrom=collabora.com; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b=pXgSMjur; arc=none smtp.client-ip=46.235.227.194 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1707211281; bh=GhYT5UYlUwjUnGnJLzVb+yqrzxe5xuH4W1+Hl/X1RiU=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=pXgSMjurtDcRf712AK1hGeRPnaZ2p6F7eDXIU+By9gziz97HzEwFq2dt6stJnT21i ysEFrzEOLH8X4haPCHn21RwZheEaxr+as95wXW6zUpp0qL8KhcnI7UZcmXFLl5KlAQ sPV4PgspK+x0cEUkKlwDZ2eQg4XlqvPQ0itfxFXdLVZVNfeAxgtiMUqKvBeLTMfM84 wtlw3v2tVEFqA6LTiBVTDnqC7+gEjrUN5kjF7X7kPXhgk9jRuWAXQBPYJ1Cj08cCet sr9CahscikPXCEAOmT5GObaJ2I96LI6cqdpD7q+VWyrNkuD87BxbbjuuCX9hQJCVQA Bfw5kj/bQl/OQ== Received: from [100.113.186.2] (cola.collaboradmins.com [195.201.22.229]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: kholk11) by madrid.collaboradmins.com (Postfix) with ESMTPSA id 80BC93782039; Tue, 6 Feb 2024 09:21:20 +0000 (UTC) Message-ID: Date: Tue, 6 Feb 2024 10:21:19 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] spmi: pmic-arb: Replace three IS_ERR() calls by null pointer checks in spmi_pmic_arb_probe() To: Markus Elfring , kernel-janitors@vger.kernel.org, Bjorn Andersson , David Collins , Fei Shao , Greg Kroah-Hartman , Peng Wu , Stephen Boyd , Vinod Koul Cc: LKML , Dmitry Baryshkov References: <82a0768e-95b0-4091-bdd1-14c3e893726b@web.de> From: AngeloGioacchino Del Regno Content-Language: en-US In-Reply-To: <82a0768e-95b0-4091-bdd1-14c3e893726b@web.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Il 04/02/24 10:24, Markus Elfring ha scritto: > From: Markus Elfring > Date: Sun, 4 Feb 2024 09:39:48 +0100 > > The devm_ioremap() function does not return error pointers. > It returns NULL on error. > This issue was detected once more also by using the Coccinelle software. > > Update three checks (and corresponding error codes) for failed > function calls accordingly. > > Fixes: ffdfbafdc4f4 ("spmi: Use devm_spmi_controller_alloc()") > Fixes: 231601cd22bd ("spmi: pmic-arb: Add support for PMIC v7") > Signed-off-by: Markus Elfring Reviewed-by: AngeloGioacchino Del Regno