diff options
author | Rafał Miłecki <zajec5@gmail.com> | 2016-05-09 07:51:50 +0000 |
---|---|---|
committer | Luka Perkov <luka@openwrt.org> | 2016-06-19 19:23:19 +0200 |
commit | db62181a7de1f4b572402b9e946a85f1436f076a (patch) | |
tree | 40887f2d913042f2fbc5f1c81df06228865f804e | |
parent | 05a7b18c2e42e636d4d368ea560d1a9f0085e3c8 (diff) | |
download | master-187ad058-db62181a7de1f4b572402b9e946a85f1436f076a.tar.gz master-187ad058-db62181a7de1f4b572402b9e946a85f1436f076a.tar.bz2 master-187ad058-db62181a7de1f4b572402b9e946a85f1436f076a.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>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49301 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r-- | package/system/mtd/src/mtd.c | 2 |
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); |