Author: rmilecki
Date: 2016-05-09 09:51:50 +0200 (Mon, 09 May 2016)
New Revision: 49301

Modified:
   trunk/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]>

Modified: trunk/package/system/mtd/src/mtd.c
===================================================================
--- trunk/package/system/mtd/src/mtd.c  2016-05-09 07:51:45 UTC (rev 49300)
+++ trunk/package/system/mtd/src/mtd.c  2016-05-09 07:51:50 UTC (rev 49301)
@@ -969,10 +969,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