stdio: Correct a build error with driver model
[oweals/u-boot.git] / common / cmd_itest.c
index 596341c9635ac6c1777c171fbda01186e23e02a3..91ae5c2704c882be8d4457d67d5f8488b19d2f1c 100644 (file)
@@ -64,9 +64,15 @@ static long evalexp(char *s, int w)
                        return 0;
                }
                switch (w) {
-               case 1: l = (long)(*(unsigned char *)buf);
-               case 2: l = (long)(*(unsigned short *)buf);
-               case 4: l = (long)(*(unsigned long *)buf);
+               case 1:
+                       l = (long)(*(unsigned char *)buf);
+                       break;
+               case 2:
+                       l = (long)(*(unsigned short *)buf);
+                       break;
+               case 4:
+                       l = (long)(*(unsigned long *)buf);
+                       break;
                }
                unmap_physmem(buf, w);
                return l;