Skip to content

Commit ef50311

Browse files
Yang Lirichardweinberger
authored andcommitted
ubi: Simplify bool conversion
./drivers/mtd/ubi/build.c:1261:33-38: WARNING: conversion to bool not needed here Reported-by: Abaci Robot <abaci@linux.alibaba.com> Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=4061 Signed-off-by: Yang Li <yang.lee@linux.alibaba.com> Reviewed-by: Zhihao Cheng <chengzhihao1@huawei.com> Signed-off-by: Richard Weinberger <richard@nod.at>
1 parent 6a8f57a commit ef50311

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/mtd/ubi/build.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1267,7 +1267,7 @@ static int __init ubi_init(void)
12671267
mutex_lock(&ubi_devices_mutex);
12681268
err = ubi_attach_mtd_dev(mtd, p->ubi_num,
12691269
p->vid_hdr_offs, p->max_beb_per1024,
1270-
p->enable_fm == 0 ? true : false);
1270+
p->enable_fm == 0);
12711271
mutex_unlock(&ubi_devices_mutex);
12721272
if (err < 0) {
12731273
pr_err("UBI error: cannot attach mtd%d\n",

0 commit comments

Comments
 (0)