aboutsummaryrefslogtreecommitdiffstats
path: root/package/system/mtd
diff options
context:
space:
mode:
authorrmilecki <rmilecki@3c298f89-4303-0410-b956-a3cf2f4a3e73>2016-05-09 07:51:50 +0000
committerRafał Miłecki <zajec5@gmail.com>2016-05-09 18:53:06 +0200
commit320641585be3f87f286c58ef7eb7bdb9cc8f35a3 (patch)
tree2d464deb858b99255a4f26f6189caece2ed7a982 /package/system/mtd
parent8a60a419512db35f4d3583589e0e623a1a2f00c9 (diff)
downloadupstream-320641585be3f87f286c58ef7eb7bdb9cc8f35a3.tar.gz
upstream-320641585be3f87f286c58ef7eb7bdb9cc8f35a3.tar.bz2
upstream-320641585be3f87f286c58ef7eb7bdb9cc8f35a3.zip
mtd: add missing breaks in a switch
On platforms supporting both: TRX and Seama calling "fixtrx" was resulting in trying to fix Seama as well. Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Diffstat (limited to 'package/system/mtd')
-rw-r--r--package/system/mtd/src/mtd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/package/system/mtd/src/mtd.c b/package/system/mtd/src/mtd.c
index 60ae7adcdf..c5115a794c 100644
--- a/package/system/mtd/src/mtd.c
+++ b/package/system/mtd/src/mtd.c
@@ -969,10 +969,12 @@ int main (int argc, char **argv)
if (mtd_fixtrx) {
mtd_fixtrx(device, offset);
}
+ break;
case CMD_RESETBC:
if (mtd_resetbc) {
mtd_resetbc(device);
}
+ break;
case CMD_FIXSEAMA:
if (mtd_fixseama)
mtd_fixseama(device, 0);