Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp6360444pxb; Mon, 8 Nov 2021 07:22:58 -0800 (PST) X-Google-Smtp-Source: ABdhPJyXFNWfgAsL7h4qu2/gUMfuRMyj5wTU1yWHnVnGFr7IgtGfRpVtYQrRl4IOXtq7sTQ/k804 X-Received: by 2002:a92:c244:: with SMTP id k4mr499550ilo.293.1636384978227; Mon, 08 Nov 2021 07:22:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1636384978; cv=none; d=google.com; s=arc-20160816; b=HNfdRw9h2SeXP1o1lzxVVVs5F+KnMJCO7LLaB0w8ZKtebTkIeVHyue+LKM5M7HLzay FESnjKRMTstLrhMtgwrTJ8iMEdAVPi+TQjWYk6YTK78mpL8YbiBJhhsCEWUrRqy8ztkX Os6lYTWwoS1pNcHZj79ZKH7OeHA/1Yp9qHWzlFTXOcVDUo0sb7wZGF8D/X9c7PXULDqP X3/YvLhqwBrhoGU6XaRtIOZuxZR16oB3c4cAG/4njvzA2VyhWC5pSTptGmC/iyFKMHux vCsXQH1L9dmf60vfvuA2OV9OxWM32hC95IuWH1r0vWWUyWF9oZyMZF8uq6qFBdaoT5tM W85w== 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=MtoYV6wcauTVXH7eaqnJ0pldyJt64VOMJeAtyl78lTg=; b=UpafcIz2Vb/XKtVEfnBiTvh26n86PD+7+6n0ruAJwCPb8IF/MuhE6mdRTR9RGQ0U++ XOLORFndSzlZiSiOaKmPedxvGcvHFmge7ZNWRdPEYln7Bq68RyOzO3ZRbon67e1zCMLG 95FXdWebaO3QsumWvWXGkKP1IbLIxS+UBA6NVLmgqcCgSW1x2TOd/zmZ0sJ9uwG0Rl+q vCQNyt3JqYg/WmPnvKvEFeJ83OC44wyhENgKg/h57rFPoAdz8TxHTZ2wmZOjuoMP8axG MNnDwUEsilUyVgHCeX/OXbbjiNUK2MPlE4Cn2aX7UeqjjYNLCZtS7t3D1dKEh7j2t40P hLyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=iU6K6Z4r; 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 u5si38849132ill.11.2021.11.08.07.22.43; Mon, 08 Nov 2021 07:22: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=iU6K6Z4r; 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 S238847AbhKHKR2 (ORCPT + 99 others); Mon, 8 Nov 2021 05:17:28 -0500 Received: from mail.skyhub.de ([5.9.137.197]:38478 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238588AbhKHKPT (ORCPT ); Mon, 8 Nov 2021 05:15:19 -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 812BA1EC0516; Mon, 8 Nov 2021 11:12:33 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1636366353; 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=MtoYV6wcauTVXH7eaqnJ0pldyJt64VOMJeAtyl78lTg=; b=iU6K6Z4rVlI5o9g0BTMN1oCvLmPd3voWnEwencwhFp81DjoTTp+IkVIke5y228nA1IgPZn iUR8IZ6d+I2yi1s9tf1s73SJRusU34fPtsYRQ/wBvhdN8pgXMBxRz26RgX7zMVAwaTYkdL aZ5xCMWpzsp1lDu2srWFO+yel2dCyeI= From: Borislav Petkov To: LKML Cc: kernel test robot , linuxppc-dev@lists.ozlabs.org Subject: [PATCH v0 32/42] macintosh/adb: Check notifier registration return value Date: Mon, 8 Nov 2021 11:11:47 +0100 Message-Id: <20211108101157.15189-33-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. Reported-by: kernel test robot Signed-off-by: Borislav Petkov Cc: linuxppc-dev@lists.ozlabs.org --- drivers/macintosh/adbhid.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/macintosh/adbhid.c b/drivers/macintosh/adbhid.c index 994ba5cb3678..c8cbf8588186 100644 --- a/drivers/macintosh/adbhid.c +++ b/drivers/macintosh/adbhid.c @@ -1262,8 +1262,8 @@ static int __init adbhid_init(void) adbhid_probe(); - blocking_notifier_chain_register(&adb_client_list, - &adbhid_adb_notifier); + if (blocking_notifier_chain_register(&adb_client_list, &adbhid_adb_notifier)) + pr_warn("ADB message notifier already registered\n"); return 0; } -- 2.29.2