From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 996E5274B46; Sat, 12 Sep 2026 19:08:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789240084; cv=none; b=lYNNQF7GTEk+CGeYVGYqP7mhq/6KYWphC02sO87b7rz0xTuFEMOckyZyVpcJXKhJNlGjfgE66RU4K7okXAyLjv0TOZ7AufzZtUsh/1Wyd/vAO8YZLoc4fAafIzeUOBks+TzRTrbqDZpIK5DOAknLa9+bRYZowVguDVSBg55Yd1k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789240084; c=relaxed/simple; bh=f8/NGiYp8kE8DHK/kiRBumgfqrSvsbW0YzCkeBdwUh0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=uxoztru0kLVonPJCNoX6WHxxHOGxUkdrdECW+N2rgJcIJO3fcu5rf04bDphfLcOV8X8iBjJaTh364kAu0aHK8xAWk+EMvO8SCfIYNx/lf0a95PrZJrlVxn2VyqNyCW1mE617sPDykMSAbav2hvOGvsuZ+MbTn1NAZC8pcmffgq8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=yMeFes9E; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="yMeFes9E" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D26131F000FF; Sat, 12 Sep 2026 19:08:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1789240083; bh=hmUeqhJjdSUqVoCpIGkeHN1zi4Kw1kF75yNn4sHheRQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=yMeFes9Ed+SU3EZ7nxLrtP3VadRRVIwTUUzP0HsCwSqF364dvIFWZDMu0sX2zmFyz vAR65Z8bOCh04EjDEwehb9do39F4iVXiVnfideiZe1A86p4R2DWvofK0HX1TVs11EB XlB2EYYVSic5rcKfcUzAsPi8T0+BFY5LKH5VzTUs= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Abaci Robot , Yang Li , Zhihao Cheng , Richard Weinberger , Sasha Levin Subject: [PATCH 5.15 795/935] ubi: Simplify bool conversion Date: Sat, 12 Sep 2026 09:03:45 +0200 Message-ID: <20260912065545.070555625@linuxfoundation.org> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260912065526.833703348@linuxfoundation.org> References: <20260912065526.833703348@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 5.15-stable review patch. If anyone has any objections, please let me know. ------------------ From: Yang Li [ Upstream commit ef5031137b90c5338792f7073ba3bf38d14c8cf1 ] ./drivers/mtd/ubi/build.c:1261:33-38: WARNING: conversion to bool not needed here Reported-by: Abaci Robot Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=4061 Signed-off-by: Yang Li Reviewed-by: Zhihao Cheng Signed-off-by: Richard Weinberger Stable-dep-of: 5b0a6b554e12 ("ubi: Fix rollback for explicit UBI device numbers") Signed-off-by: Sasha Levin --- drivers/mtd/ubi/build.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/ubi/build.c b/drivers/mtd/ubi/build.c index b55f886068ecf..948b4c0184c42 100644 --- a/drivers/mtd/ubi/build.c +++ b/drivers/mtd/ubi/build.c @@ -1273,7 +1273,7 @@ static int __init ubi_init(void) mutex_lock(&ubi_devices_mutex); err = ubi_attach_mtd_dev(mtd, p->ubi_num, p->vid_hdr_offs, p->max_beb_per1024, - p->enable_fm == 0 ? true : false); + p->enable_fm == 0); mutex_unlock(&ubi_devices_mutex); if (err < 0) { pr_err("UBI error: cannot attach mtd%d\n", -- 2.53.0