提交 53d66bae 编写于 作者: B Brian Norris

mtd: onenand: remove redundant offset check

The mtd_block_isbad() interface already checks for this.
Signed-off-by: NBrian Norris <computersforpeace@gmail.com>
上级 8c519436
......@@ -2556,10 +2556,6 @@ static int onenand_block_isbad(struct mtd_info *mtd, loff_t ofs)
{
int ret;
/* Check for invalid offset */
if (ofs > mtd->size)
return -EINVAL;
onenand_get_device(mtd, FL_READING);
ret = onenand_block_isbad_nolock(mtd, ofs, 0);
onenand_release_device(mtd);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册