mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-23 23:42:43 +00:00
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 <zajec5@gmail.com>
This commit is contained in:
parent
8a60a41951
commit
320641585b
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user