Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp6253718pxb; Mon, 8 Nov 2021 05:46:46 -0800 (PST) X-Google-Smtp-Source: ABdhPJxROJD0Hl7yMCZ+o+WGZmmbyJ7i86jYdNkq2tbHWR1wJJfXx2GnE23WaYyYEJegTASCNDo5 X-Received: by 2002:a50:e044:: with SMTP id g4mr105345578edl.46.1636379205942; Mon, 08 Nov 2021 05:46:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1636379205; cv=none; d=google.com; s=arc-20160816; b=V2L8WOZrhsF9x22RtvY+U/umeySzizKZGC/CbWIs0P2d+unGHtuROACvtjtx3W2O9a QpSBHfGKJOy2EMgWERpTGijijTqMFjuejW/GqUqxf2slfZWtD15Adw1U5hnho/p1TjOd dwZ5ck9aDpY7oUW6vhlm6tRs/WlnoxRhd6WilR56gP/jrdatP2oTVwUqEHX1t/mS3x6E a+xJUEL3Ne+qNeOESNtGlTZGbIg8lS5+X5Uii+IC5m/nqw+fbV3IDvo8AXp24/GYSnwL 2ETwiw4kKJJ1uDXTRg1sHkTK9CFMVp14BrXB3qwjTHy5+lEjUDIMvBSDLT0VSupkWXfd R4og== 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=FxVkuZ7OCN+2Qh/i9u9CFGxXBKzX4XNLfCP+cKzNBSU=; b=EIMywJ1w46g/1vXtgn8oqX9BMgkY9Diq9ju1a9U8vm7/4bRUdC3FyZ/urp1MUrTS7Q JHf8k8SscDxz9tOVQrQ4+FPWiGFPzgQwP8iXtWVZvXed9DUTaDYpO96vZ36UNnF4og/f BC8H+sO9m2Eb6JvG/a1OXGpJP2KwueW7zwZmq9qDu7lAkideXh9JCEXlyLQ6CwrYdH1q hKFHik0n3620bFRZ7wYBH6jOiWCeDmaLdZZOCRKI2sIyfadyH0p6oRpCgtJftxxS69JS A2J6bBSLUR27dYjeDfm3QKJ4/vIuoVo34DktJ5si2SrgAUd+28GDRER0ec73l+Nc1MTi Achw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=HYqTuDfa; 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 u13si21222573ejx.729.2021.11.08.05.46.19; Mon, 08 Nov 2021 05:46:45 -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=HYqTuDfa; 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 S238946AbhKHKTN (ORCPT + 99 others); Mon, 8 Nov 2021 05:19:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38660 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238633AbhKHKPg (ORCPT ); Mon, 8 Nov 2021 05:15:36 -0500 Received: from mail.skyhub.de (mail.skyhub.de [IPv6:2a01:4f8:190:11c2::b:1457]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4C32DC06120E for ; Mon, 8 Nov 2021 02:12:33 -0800 (PST) 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 D75BA1EC0505; Mon, 8 Nov 2021 11:12:31 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1636366352; 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=FxVkuZ7OCN+2Qh/i9u9CFGxXBKzX4XNLfCP+cKzNBSU=; b=HYqTuDfayfFhMePh1NuAWcHEaC35QLiw/g9ElxpLDZkg2QUfunvx9MC8p4ZJeafvfLNWo4 Igshl3WJcA5rN57fUNLgaBn70TYfS5xLlvfAFGLVHzTIKaUYbYesyXTnw88tOVq2RRHzj6 qhtUlMK9PJg9ERPSaAdZA0geNCcXRd0= From: Borislav Petkov To: LKML Cc: linux-tegra@vger.kernel.or Subject: [PATCH v0 30/42] soc/tegra: Check notifier registration return value Date: Mon, 8 Nov 2021 11:11:45 +0100 Message-Id: <20211108101157.15189-31-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: linux-tegra@vger.kernel.or --- drivers/soc/tegra/ari-tegra186.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/soc/tegra/ari-tegra186.c b/drivers/soc/tegra/ari-tegra186.c index 02577853ec49..a25e1b7497e0 100644 --- a/drivers/soc/tegra/ari-tegra186.c +++ b/drivers/soc/tegra/ari-tegra186.c @@ -72,8 +72,11 @@ static struct notifier_block tegra186_ari_panic_nb = { static int __init tegra186_ari_init(void) { - if (of_machine_is_compatible("nvidia,tegra186")) - atomic_notifier_chain_register(&panic_notifier_list, &tegra186_ari_panic_nb); + if (of_machine_is_compatible("nvidia,tegra186")) { + if (atomic_notifier_chain_register(&panic_notifier_list, + &tegra186_ari_panic_nb)) + pr_warn("Panic notifier already registered\n"); + } return 0; } -- 2.29.2