Author: rmilecki
Date: 2016-05-09 09:55:18 +0200 (Mon, 09 May 2016)
New Revision: 49303

Modified:
   branches/chaos_calmer/package/system/mtd/src/mtd.c
Log:
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{U+0142} Mi{U+0142}ecki <[email protected]>

Backport of r49301

Modified: branches/chaos_calmer/package/system/mtd/src/mtd.c
===================================================================
--- branches/chaos_calmer/package/system/mtd/src/mtd.c  2016-05-09 07:55:08 UTC 
(rev 49302)
+++ branches/chaos_calmer/package/system/mtd/src/mtd.c  2016-05-09 07:55:18 UTC 
(rev 49303)
@@ -900,10 +900,12 @@
                        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);
_______________________________________________
openwrt-commits mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits

Reply via email to