summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--common/cmd_itest.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/common/cmd_itest.c b/common/cmd_itest.c
index 596341c963..91ae5c2704 100644
--- a/common/cmd_itest.c
+++ b/common/cmd_itest.c
@@ -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;