Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp1795137rdb; Sun, 4 Feb 2024 01:28:09 -0800 (PST) X-Google-Smtp-Source: AGHT+IHskGpzi3lHG5IdjUhmE3BLQ0mZvtxdn5GYeaFA+h3tOGam47hoa/5x+SRAGWMRmKYvyh0y X-Received: by 2002:a62:f80b:0:b0:6db:d0e1:3357 with SMTP id d11-20020a62f80b000000b006dbd0e13357mr11436774pfh.22.1707038889665; Sun, 04 Feb 2024 01:28:09 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707038889; cv=pass; d=google.com; s=arc-20160816; b=BDff/z0u1P3e20z59V199KkQMHzNmmpjijaC0mHJXGVIenvIAURIxgnWwbxO7+Qbyf kxAEi9PH60KmjMOkko3TSVeURp+Bb3CQRELqwUT9DmdJ8ZOEst+rxN3F3hjqUF2wTl5k k6ZWszdEAKCKkpFS0nBLyWQ9602Z5BCfhd5Ziy5HKITFvWKNYLoVwJUXoYh9TD+Qnb9M bfFO94Pf8x9oPXE/hFutqOp/6oO5nm7LVbPHhtXxPznbLd7ZoNoRPlsInd741jrYhdRd jaM0mb/MUM7oy/pztjjnM28Afq2AF0r2mJvN4+YBIAiJTJlERNq2WTGWr6Hkp8r3nox2 kAVw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=P5sjWNa2Zbf00IkE3XpgyHgd6FEK1NqFbKWHmhVWEP0=; fh=/NAqfFayPnhxPpZZqKVcvkvTm8ApMyQV/3I/StzcoDg=; b=GQuDIZroleiCMsfABUzBzqm8ogHkFzeAvj2rGK1+bpmceI3kUaa4df1LS1Clgxr3ue F1zQa/sVODRpGy9oTRH9pUir0dgbhjLwPB2MbU+alJhUyriUAte+oUrbx74FKzrAJXEj u28iuTk7aBSx+eTr+ZR+1Vt1/3xLbEbu1DY713fZ0JEsqzM2KycZFBUnppLPTIX4laJN mUl0Y2fm9/0Q6AbYasXCF6hLRRdOeW/ix5Gd65LKYX5TwPDyfjyfaV0/WzKPRALZ6kjU bsDkgNceUwYm5wtpjeXEX4TLf3zlr+xLsb9CpdS8bGNKfPqWN/3RIA0PVqyFFnIB4N5l k9oA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="AOMqV9/K"; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-51557-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-51557-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org X-Forwarded-Encrypted: i=1; AJvYcCU7ed3Phx1xdqBVgk1iPW+/4gkZmy477C6iPsq86BBxGwrtmJqUb2K6nHGUIj8iQxGadWImFa/tK4XwN1f/TkQ4P+i4uUgfH/LdXyz1YQ== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id g15-20020a63f40f000000b005cdde899923si4184415pgi.758.2024.02.04.01.28.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 04 Feb 2024 01:28:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-51557-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="AOMqV9/K"; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-51557-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-51557-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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 53F46282E94 for ; Sun, 4 Feb 2024 09:28:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8DA3F18C28; Sun, 4 Feb 2024 09:28:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="AOMqV9/K" Received: from mail-yw1-f180.google.com (mail-yw1-f180.google.com [209.85.128.180]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 45CAF18AF9 for ; Sun, 4 Feb 2024 09:28:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.180 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707038883; cv=none; b=e/pYZXpo/XNsLUVgLJ/o8lka5SQPeidBCCYsjSg8JeWop59jnPCtbyCRasa3tT2mKUcvf6OlpV0tFR5Rdo3WTnMlCOAgJzpuJMsWgV7kKnCRohgoSgR9oCpzoNgj0UoZrlyVjyBRNSv/9QZwskvFtA9SEyUQrwqyeoa7olv5CbI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707038883; c=relaxed/simple; bh=UuFaKeSRYDkGrMKG+Q0ICLTYQicuRK3ywZvev5g2U50=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=VSfVi+tbmBSRiOzeHM5obkRGylQ+b+L5R5gWmPxVFp8RtvOvSNXd1a7FszMApQqxS+R5cIiyf68gt96UkHblsGUyfZqw2LHO+79I9Q2veuVvKEqzP6Tl51jjrfFjAtasYkIAe+XyqAvjKbmU1CXyTaf2edNi6Fqas+oqUBt7xCc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=AOMqV9/K; arc=none smtp.client-ip=209.85.128.180 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-yw1-f180.google.com with SMTP id 00721157ae682-603fdc46852so36307287b3.2 for ; Sun, 04 Feb 2024 01:28:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1707038881; x=1707643681; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=P5sjWNa2Zbf00IkE3XpgyHgd6FEK1NqFbKWHmhVWEP0=; b=AOMqV9/KnjoGzF0WNMejWggwkPdEEu0okhAvt99G2K30nN62rVipREgM+uCN/KH6jP J/XqdXd2g6WHETDHRzEXJqT+jXdO8ppyuVL9WesxzgjlafqJJk7NwZm7id2rlxyoj1dP Ses1PIGgB8nYRI1w/FM3AdgKRZg9FlyQWGGiCOb1uicleDVsGso309oAevUfAGjXLNXT q79+PmW8GutCEsFX3SjIcJdn6ZrRFOsTZKjXu+iWm8x9X7H6QvbWS+BCE5mDBZWCjYiY vDtZi58RFD3dZRtbdo6BlaRjH9yhS2HAjQfUARvsPTglSmHQzKPk2OqO6mga9LfZw7qD KJKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707038881; x=1707643681; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=P5sjWNa2Zbf00IkE3XpgyHgd6FEK1NqFbKWHmhVWEP0=; b=ScFnYfJpVVGjmbkVK4hqkmoq0MEVCuBcV3llETMGmZ91ysuMosiqWLooR3+iWlXJcx ANiz+pFuQvRr1S2u5INWx06sKLqTWfve8S0r7oAISYe0TOAim3hkjtJWrDUYW+qDmlhe jeXVdxLvI0FUupACwZKaCTy9eXPQIltFhzCOjAF1A5lrH3lbJOnjib4R35VF+kKlh4yZ k3XR7rukub/GynH54/Z/5OKjZJLDmWhJmvjfG722Y0/PHkAmMlNbijOb/iutLjBWu/kw ytsLuFdvYh9XjwSD8R4bTqy7DQdjpT9SSepsd8PZQdRG35UKcqkKSxiRSbaiRLN6OdsV 5jdw== X-Gm-Message-State: AOJu0YzHNh+gX+7A1jzbeGelYBGkHsJJvJMox7unh+rpH33ahGufwcT7 ZZXBhujq/f09W3NJRoMzR1CMqlrR/VSTMfq2PfrEvsJ7lqnfUKGqJDfxDu+GFVVQw0btu6hAhTr s21/rwWq7CzKlFOF4OGoIgugxHN3uUQferPSvhA== X-Received: by 2002:a25:8310:0:b0:dc6:db64:67a8 with SMTP id s16-20020a258310000000b00dc6db6467a8mr8149346ybk.43.1707038881088; Sun, 04 Feb 2024 01:28:01 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <82a0768e-95b0-4091-bdd1-14c3e893726b@web.de> In-Reply-To: <82a0768e-95b0-4091-bdd1-14c3e893726b@web.de> From: Dmitry Baryshkov Date: Sun, 4 Feb 2024 10:27:50 +0100 Message-ID: Subject: Re: [PATCH] spmi: pmic-arb: Replace three IS_ERR() calls by null pointer checks in spmi_pmic_arb_probe() To: Markus Elfring Cc: kernel-janitors@vger.kernel.org, AngeloGioacchino Del Regno , Bjorn Andersson , David Collins , Fei Shao , Greg Kroah-Hartman , Peng Wu , Stephen Boyd , Vinod Koul , LKML Content-Type: text/plain; charset="UTF-8" On Sun, 4 Feb 2024 at 10:24, Markus Elfring wrote: > > 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 > --- > > See also: > Suggestion by Peng Wu > [PATCH -next] spmi: pmic-arb: fix a NULL vs IS_ERR() check in spmi_pmic_arb_probe() > https://lore.kernel.org/lkml/20221115090927.47143-1-wupeng58@huawei.com/ > https://lkml.org/lkml/2022/11/15/197 > Reviewed-by: Dmitry Baryshkov -- With best wishes Dmitry