提交 e1bc37ce 编写于 作者: R Richard Weinberger

UBI: Fastmap: Remove else after return.

checkpatch.pl complains:
WARNING: else is not generally useful after a break or return
Signed-off-by: NRichard Weinberger <richard@nod.at>
上级 2f84c246
......@@ -260,10 +260,10 @@ static struct ubi_wl_entry *get_peb_for_wl(struct ubi_device *ubi)
schedule_work(&ubi->fm_work);
}
return NULL;
} else {
pnum = pool->pebs[pool->used++];
return ubi->lookuptbl[pnum];
}
pnum = pool->pebs[pool->used++];
return ubi->lookuptbl[pnum];
}
/**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册