[][OpenWrt Dev][nmbm: remove unnecessary mark bad in read operation]

[Description]
Remove marking bad logic on read failure

The NAND device won't fail on reading (only timeout exists).

[Release-log]
N/A

Change-Id: I0debd3419610b34bf899bfb2c68805e17ca3b1ba
Reviewed-on: https://gerrit.mediatek.inc/c/openwrt/feeds/mtk_openwrt_feeds/+/4649344
diff --git a/target/linux/generic/files-5.4/drivers/mtd/nmbm/nmbm-core.c b/target/linux/generic/files-5.4/drivers/mtd/nmbm/nmbm-core.c
index d762d6a..009b82e 100644
--- a/target/linux/generic/files-5.4/drivers/mtd/nmbm/nmbm-core.c
+++ b/target/linux/generic/files-5.4/drivers/mtd/nmbm/nmbm-core.c
@@ -2498,7 +2498,6 @@
 {
 	uint32_t lb, pb, offset;
 	uint64_t paddr;
-	int ret;
 
 	/* Extract block address and in-block offset */
 	lb = addr2ba(ni, addr);
@@ -2520,18 +2519,7 @@
 	/* Assemble new address */
 	paddr = ba2addr(ni, pb) + offset;
 
-	ret = nmbm_read_phys_page(ni, paddr, data, oob, mode);
-	if (ret >= 0 || ret == -EBADMSG)
-		return ret;
-
-	/*
-	 * Do not remap bad block here. Just mark this block in state table.
-	 * Remap this block on erasing.
-	 */
-	nmbm_set_block_state(ni, pb, BLOCK_ST_NEED_REMAP);
-	nmbm_update_info_table(ni);
-
-	return ret;
+	return nmbm_read_phys_page(ni, paddr, data, oob, mode);
 }
 
 /*