From: rmilecki Date: Mon, 9 May 2016 07:51:50 +0000 (+0000) Subject: mtd: add missing breaks in a switch X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=320641585be3f87f286c58ef7eb7bdb9cc8f35a3;p=openwrt%2Fstaging%2Fkaloz.git 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 --- 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);