From nobody Tue Feb 10 09:24:55 2026 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (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 4720DEACE; Wed, 1 Jan 2025 11:44:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735731858; cv=none; b=g0uligHE4Z0wnLEEkWP5i4Zg4ogav+4On6M1JUisK8qo+FYotvFZFF47RB/zGXDBS3GEqG8ifTGeQewMamHqhkNqzhvNBt13M9hQdkZed1C0X04uvZTZkCCuuyZCh2FnFOPlnhC1wC7Ow2BgMsr59KJdvzDH0fe7IhX1lr4fQbA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735731858; c=relaxed/simple; bh=MEyeHRWV//I4V1eH+9Sd1f8UZ5bKwzG5uQ9amEpS3Hg=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=HQRzusvF8fSxqonHURm8o3np5kJhrluhw6EWCEZXyGBDPIQ0p9c8Uo0NnIzqG0tV/3wbM99yGKim7KuuaMHizkqhPpCqM6hwA8E39CG8cQg/i9Sh+xSaCvC9sUgRR7qPH+q+4Phw+o5GBDEr7ZF+52qqD6DhGdailcVTbJCN7P4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=iB67DuH5; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=CsaSTzaX; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="iB67DuH5"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="CsaSTzaX" Date: Wed, 01 Jan 2025 11:44:03 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1735731847; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=t2tVPyDzOY6AloWdGyH2gpQB3iVBNrl4WgaVNXkkNBI=; b=iB67DuH5ncGyKw2G9+M55VQjDXEz1US4TpV5qpBZHkA2VjUZcb4kB8cPfRlqIYPWPPY14X 44TOh+SsLD4O1erT4dpTvdFo8XjRjcvCi6fhTGM0OvS4w8J0k+fz2FyGTV+jOB4J2kRzt9 AZEg8KsXQeRrZ1thvdGlLgMcCMxpWMN/cj6JWtXLT8R3ZIzvEX2/DKmJHG6LXC5BFEmBlZ eDfnCe1Fj/p5ORcmqlfqodn3hTMxV/HyCUu8kEUsnXgDCyo+EW2VLjVS6T14x/hRZP7wUe MFcVKyKPgu2f/CDGElUgynaX/nkHPc0GizRpsuYWttAKblz3NymVZoGdr5phmw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1735731847; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=t2tVPyDzOY6AloWdGyH2gpQB3iVBNrl4WgaVNXkkNBI=; b=CsaSTzaXnRMJJjaiz4AJEG0Oa4aiCLOLgIZv+kbzT60cODd/ibh3J9ycmb8bgyyfK1eQs/ peXMem+aiaO600BQ== From: "tip-bot2 for Qiuxu Zhuo" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: ras/core] x86/mce/amd: Remove unnecessary NULL pointer initializations Cc: Qiuxu Zhuo , "Borislav Petkov (AMD)" , Nikolay Borisov , Sohil Mehta , Yazen Ghannam , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20241212140103.66964-8-qiuxu.zhuo@intel.com> References: <20241212140103.66964-8-qiuxu.zhuo@intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <173573184404.399.677738006176037845.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Precedence: bulk Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable The following commit has been merged into the ras/core branch of tip: Commit-ID: 0a6c5391f8812323300057f4dbb89b8bf886ee8e Gitweb: https://git.kernel.org/tip/0a6c5391f8812323300057f4dbb89b8bf= 886ee8e Author: Qiuxu Zhuo AuthorDate: Thu, 12 Dec 2024 22:01:03 +08:00 Committer: Borislav Petkov (AMD) CommitterDate: Tue, 31 Dec 2024 11:14:36 +01:00 x86/mce/amd: Remove unnecessary NULL pointer initializations Remove unnecessary NULL pointer initializations from variables that are already initialized before use. Signed-off-by: Qiuxu Zhuo Signed-off-by: Borislav Petkov (AMD) Reviewed-by: Nikolay Borisov Reviewed-by: Sohil Mehta Reviewed-by: Yazen Ghannam Link: https://lore.kernel.org/r/20241212140103.66964-8-qiuxu.zhuo@intel.com --- arch/x86/kernel/cpu/mce/amd.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/arch/x86/kernel/cpu/mce/amd.c b/arch/x86/kernel/cpu/mce/amd.c index 018874b..c79a829 100644 --- a/arch/x86/kernel/cpu/mce/amd.c +++ b/arch/x86/kernel/cpu/mce/amd.c @@ -921,8 +921,8 @@ static void log_and_reset_block(struct threshold_block = *block) */ static void amd_threshold_interrupt(void) { - struct threshold_block *first_block =3D NULL, *block =3D NULL, *tmp =3D N= ULL; struct threshold_bank **bp =3D this_cpu_read(threshold_banks); + struct threshold_block *first_block, *block, *tmp; unsigned int bank, cpu =3D smp_processor_id(); =20 /* @@ -1201,8 +1201,7 @@ out_free: static int __threshold_add_blocks(struct threshold_bank *b) { struct list_head *head =3D &b->blocks->miscj; - struct threshold_block *pos =3D NULL; - struct threshold_block *tmp =3D NULL; + struct threshold_block *pos, *tmp; int err =3D 0; =20 err =3D kobject_add(&b->blocks->kobj, b->kobj, b->blocks->kobj.name); @@ -1312,8 +1311,7 @@ static void deallocate_threshold_blocks(struct thresh= old_bank *bank) =20 static void __threshold_remove_blocks(struct threshold_bank *b) { - struct threshold_block *pos =3D NULL; - struct threshold_block *tmp =3D NULL; + struct threshold_block *pos, *tmp; =20 kobject_put(b->kobj);