diff options
author | Rafał Miłecki <zajec5@gmail.com> | 2016-05-09 07:55:18 +0000 |
---|---|---|
committer | Luka Perkov <luka@openwrt.org> | 2016-06-19 19:56:13 +0200 |
commit | c3c7d8b1429ad5f155e437eb1868a9da2551595b (patch) | |
tree | 0911febe3c81d8c7a67164ad7b170f404e3e8aad /package | |
parent | 59537359b7fcefda1062f92783198d1fc203fbbd (diff) | |
download | upstream-c3c7d8b1429ad5f155e437eb1868a9da2551595b.tar.gz upstream-c3c7d8b1429ad5f155e437eb1868a9da2551595b.tar.bz2 upstream-c3c7d8b1429ad5f155e437eb1868a9da2551595b.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>
Backport of r49301
git-svn-id: svn://svn.openwrt.org/openwrt/branches/chaos_calmer@49303 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package')
-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 6650068a2a..c39b103fd0 100644 --- a/package/system/mtd/src/mtd.c +++ b/package/system/mtd/src/mtd.c @@ -900,10 +900,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); |