Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp6344549pxb; Mon, 8 Nov 2021 07:08:58 -0800 (PST) X-Google-Smtp-Source: ABdhPJydVJTgN+Mtx/e0FKwmn4oi54amvDgjGKiCOSED9tBnkaRcTBSi7tinATMproB8HyUsBnmO X-Received: by 2002:a05:6402:3586:: with SMTP id y6mr362747edc.332.1636384138674; Mon, 08 Nov 2021 07:08:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1636384138; cv=none; d=google.com; s=arc-20160816; b=XTjG/N0MM99BAUMIvzJSUz1Yg+rBltXCVHqXusSKj+v6hY9kzm9C0/tpYn/ttpTl3y G8QH20Q1Sqw6K25zaXEzUHZLemw0zxlY729hjhiN0GiX6QLhr8+0HDZq+Vwjz1uZIVgb uJwENFbcklvEjTHeAY8xuC8y30qMWI/gEZ4oz0lx8NU6pT0IK43HoeJOz6cDU+djBoM9 9a16CXjpUUjfzG7Z5ZkD8B86IWlas6+PLLFrjpbMAo97UWLyq77Q5kJE0M+ii2r2KHij 8rYcGR+a3LQiYy3GCyykACZHrlfhYcek79dXE4QXJrgmsu/OLxG5zsXmD3B4kOMLC0Mm Jk6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=F/OtEsxs0FxuB+jHRrAJERIu8nw9X9+cQ1BcJG9NbZE=; b=FV7d0y39Rn69xsbIycY8wdUdwQF+Y0HIKqG4Lnm2pVf+qiUSzCSdiWVduZPjhJZwL2 MzTwyKjdwwZqe0EIXymxMysuWR2XT8NXfMHcZv4EdB/ynPXVFGnKFsHD5exLK6PYb+5i ItIsZlb/TwBXV1SlQBDFGsNyaHnCjyxzROkm2KLwKXHGR7bPaIoa/sRM24z/brmceCEE 3htu0BEnrOBCT7rzVJ/lQE2/D+pz9W090q35PTrnEUDFWVdHY3D62sqHo+flDcgKuvUH RRIspCrPJDZ/sYI+w03mcYLlhkm6AlahyJOlK6adQm0NOFVaE3P5b2xHoeyV0ROMreSy q1Eg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b="Krn/4Bm2"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v19si22246701edc.505.2021.11.08.07.08.34; Mon, 08 Nov 2021 07:08:58 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b="Krn/4Bm2"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238800AbhKHKSC (ORCPT + 99 others); Mon, 8 Nov 2021 05:18:02 -0500 Received: from mail.skyhub.de ([5.9.137.197]:38418 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238582AbhKHKPO (ORCPT ); Mon, 8 Nov 2021 05:15:14 -0500 Received: from zn.tnic (p200300ec2f33110088892b77bd117736.dip0.t-ipconnect.de [IPv6:2003:ec:2f33:1100:8889:2b77:bd11:7736]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 6DE8D1EC0518; Mon, 8 Nov 2021 11:12:29 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1636366349; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=F/OtEsxs0FxuB+jHRrAJERIu8nw9X9+cQ1BcJG9NbZE=; b=Krn/4Bm2dw7+qlipiJWIVQpPsgQYg0iEVnvPxyc+cbreeQQe2hKjUKMimAHp/uQDHgS9ke ui6QcuxnVnCmsg2CY8dPtDgivjBQ13HlP2Mz4ld2rtsiz0dmd+Honw4EuYKkyzBXsqkKSF qgabt1OyhA2RmM4tplU8SDB0gkPUqR0= From: Borislav Petkov To: LKML Cc: bcm-kernel-feedback-list@broadcom.com Subject: [PATCH v0 27/42] bus: brcmstb_gisb: Check notifier registration return value Date: Mon, 8 Nov 2021 11:11:42 +0100 Message-Id: <20211108101157.15189-28-bp@alien8.de> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20211108101157.15189-1-bp@alien8.de> References: <20211108101157.15189-1-bp@alien8.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Borislav Petkov Avoid homegrown notifier registration checks. No functional changes. Signed-off-by: Borislav Petkov Cc: bcm-kernel-feedback-list@broadcom.com --- drivers/bus/brcmstb_gisb.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/bus/brcmstb_gisb.c b/drivers/bus/brcmstb_gisb.c index 4c2f7d61cb9b..1c0180ebe6a7 100644 --- a/drivers/bus/brcmstb_gisb.c +++ b/drivers/bus/brcmstb_gisb.c @@ -490,8 +490,10 @@ static int __init brcmstb_gisb_arb_probe(struct platform_device *pdev) if (list_is_singular(&brcmstb_gisb_arb_device_list)) { register_die_notifier(&gisb_die_notifier); - atomic_notifier_chain_register(&panic_notifier_list, - &gisb_panic_notifier); + + if (atomic_notifier_chain_register(&panic_notifier_list, + &gisb_panic_notifier)) + pr_warn("GISB Panic notifier already registered\n"); } dev_info(&pdev->dev, "registered irqs: %d, %d\n", -- 2.29.2