mtd: add missing breaks in a switch
authorRafał Miłecki <zajec5@gmail.com>
Mon, 9 May 2016 07:51:50 +0000 (07:51 +0000)
committerRafał Miłecki <zajec5@gmail.com>
Mon, 9 May 2016 07:51:50 +0000 (07:51 +0000)
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>
SVN-Revision: 49301

package/system/mtd/src/mtd.c

index 60ae7ad..c5115a7 100644 (file)
@@ -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);