From 88c398baacc94a371273ec5cf7025c585d698590 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rafa=C5=82=20Mi=C5=82ecki?= Date: Mon, 9 May 2016 07:51:50 +0000 Subject: [PATCH] mtd: add missing breaks in a switch MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit On platforms supporting both: TRX and Seama calling "fixtrx" was resulting in trying to fix Seama as well. Signed-off-by: Rafał Miłecki SVN-Revision: 49301 --- package/system/mtd/src/mtd.c | 2 ++ 1 file changed, 2 insertions(+) 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); -- 2.30.2