From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from sender-of-o55.zoho.eu (sender-of-o55.zoho.eu [136.143.169.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 711EE38644E; Sat, 14 Mar 2026 21:55:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=pass smtp.client-ip=136.143.169.55 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773525340; cv=pass; b=p0kGBV9rZ7Mzjj4WGOLnLC7aOLKHz8cDTRP1SAixgF668FdEcY2L/dHmJSfRYqzkAYRiTLDpznKnpHL8wG/7VaI0NyCascyUxr0wtQyFP585G5jPKeUjXof+OmIxKJVb9uOe8izUixySyUZrnrwebI7KCaoP/tHWhlHNw46QMxk= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773525340; c=relaxed/simple; bh=Ca2yOMLol0eXm8Z93sdZF0uzxBHDnoJJ5YjTb0UjCSg=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=Wa8PW7wPn1+mA9mKGZEnIOCvPJD843Fs7bjFxaCvZ8o5AAiYFLCgj19BzpdXpOE8rONDL3wQ4P+CLMDbn5xD/mjjk65/Lu4AN7ykeWHI/vY03KyQmJABAaplqOw+KC+GiiVCebxNeUjWgcy9EQ/xdzY8kyitRTbFLWuyXrcvud4= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=objecting.org; spf=pass smtp.mailfrom=objecting.org; dkim=pass (1024-bit key) header.d=objecting.org header.i=objecting@objecting.org header.b=B74gYtpY; arc=pass smtp.client-ip=136.143.169.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=objecting.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=objecting.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=objecting.org header.i=objecting@objecting.org header.b="B74gYtpY" ARC-Seal: i=1; a=rsa-sha256; t=1773525332; cv=none; d=zohomail.eu; s=zohoarc; b=dgycDmnQ7bZ22H1sei1ZsnrqYLU5lff5ZiyDr/+2HGeev09aFEqBs7tLt3J6uMA2+GrVt2cygbdJAdgsQP3u116dUBrUtWK61lUSqWIrtWwM7zaM0jpMPsA4rzjyIn4mvpzXuHVeySLib9qGWh3IKa15pvKaS34CZgvOvKKLcZk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.eu; s=zohoarc; t=1773525332; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:Subject:To:To:Message-Id:Reply-To; bh=M861Pari/lV9kRCqOVfEViiGvsDrnuYG9MG+0z+YaXE=; b=iaNu5qElkyxh3Grm+1d5gQuRSIuYu3utl/UCfMEH0IdINxMinQqOs5GDX01k+QXVXF+cSqqmJWzBOSqqVC2hJTgib4hTn9aA60YBWkocubvvJHXW2u1UdohR/4UFDoZ5mwBuydV6ra1ZDSZNjaddsaBXHr2odbUDuE5rUqsXiZ8= ARC-Authentication-Results: i=1; mx.zohomail.eu; dkim=pass header.i=objecting.org; spf=pass smtp.mailfrom=objecting@objecting.org; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1773525332; s=zmail; d=objecting.org; i=objecting@objecting.org; h=From:From:To:To:Cc:Cc:Subject:Subject:Date:Date:Message-Id:Message-Id:In-Reply-To:References:MIME-Version:Content-Transfer-Encoding:Reply-To; bh=M861Pari/lV9kRCqOVfEViiGvsDrnuYG9MG+0z+YaXE=; b=B74gYtpYSdqxaxQKvJAGfxBKn5byN3Nsf53CWNU8etvk5bC+9TUrxNZDR0NNofDl dzJW+0E+C2uxPDRerPvyYQRnF7IuDzhfi2Fy3Kq3TNArqyKVI2br+2EWa4mFYyxrzAP 99bNcvwubiQeUy9QmOHDcI7Ay2KVvh3XLzRPp+ME= Received: by mx.zoho.eu with SMTPS id 177352533025092.62113320692242; Sat, 14 Mar 2026 22:55:30 +0100 (CET) From: Josh Law To: Masami Hiramatsu , Andrew Morton Cc: linux-trace-kernel@vger.kernel.org, linux-kernel@vger.kernel.org, Josh Law Subject: [PATCH 05/14] lib/bootconfig: fix inconsistent if/else bracing Date: Sat, 14 Mar 2026 21:55:17 +0000 Message-Id: <20260314215526.108651-6-objecting@objecting.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20260314215526.108651-1-objecting@objecting.org> References: <20260314215526.108651-1-objecting@objecting.org> Precedence: bulk X-Mailing-List: linux-trace-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-ZohoMailClient: External When one branch of a conditional uses braces, both branches should use them per kernel coding style. Signed-off-by: Josh Law --- lib/bootconfig.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/bootconfig.c b/lib/bootconfig.c index e955d2f7e7ca..45db51bc9cc7 100644 --- a/lib/bootconfig.c +++ b/lib/bootconfig.c @@ -473,8 +473,9 @@ static struct xbc_node * __init __xbc_add_sibling(char *data, uint32_t flag, boo sib->next = xbc_node_index(node); } } - } else + } else { xbc_parse_error("Too many nodes", data); + } return node; } @@ -992,8 +993,9 @@ int __init xbc_init(const char *data, size_t size, const char **emsg, int *epos) if (emsg) *emsg = xbc_err_msg; _xbc_exit(true); - } else + } else { ret = xbc_node_num; + } return ret; } -- 2.34.1