Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[MTD] OneNAND: Fix typo and remove unnecessary goto statement

In previos patch, there's typo so fix it
Remove unnecessary goto statement

Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>

+4 -8
+4 -8
drivers/mtd/onenand/onenand_base.c
··· 616 616 617 617 /* Invalidate another BufferRAM */ 618 618 i = ONENAND_NEXT_BUFFERRAM(this); 619 - if (this->bufferram[i].blockpage == blockpage) { 619 + if (this->bufferram[i].blockpage == blockpage) 620 620 this->bufferram[i].blockpage = -1; 621 621 622 622 /* Update BufferRAM */ ··· 889 889 890 890 if (ret) { 891 891 DEBUG(MTD_DEBUG_LEVEL0, "onenand_read_oob: read failed = 0x%x\n", ret); 892 - goto out; 892 + break; 893 893 } 894 894 895 895 read += thislen; ··· 907 907 } 908 908 } 909 909 910 - out: 911 910 /* Deselect and wake up anyone waiting on the device */ 912 911 onenand_release_device(mtd); 913 912 ··· 1098 1099 } 1099 1100 1100 1101 written += thislen; 1101 - 1102 1102 if (written == len) 1103 1103 break; 1104 1104 ··· 1221 1223 ret = this->wait(mtd, FL_WRITING); 1222 1224 if (ret) { 1223 1225 DEBUG(MTD_DEBUG_LEVEL0, "onenand_write_oob: write failed %d\n", ret); 1224 - goto out; 1226 + break; 1225 1227 } 1226 1228 1227 1229 ret = onenand_verify_oob(mtd, this->page_buf, to); 1228 1230 if (ret) { 1229 1231 DEBUG(MTD_DEBUG_LEVEL0, "onenand_write_oob: verify failed %d\n", ret); 1230 - goto out; 1232 + break; 1231 1233 } 1232 1234 1233 1235 written += thislen; 1234 - 1235 1236 if (written == len) 1236 1237 break; 1237 1238 ··· 1239 1242 column = 0; 1240 1243 } 1241 1244 1242 - out: 1243 1245 /* Deselect and wake up anyone waiting on the device */ 1244 1246 onenand_release_device(mtd); 1245 1247