[U-Boot] [PATCH 2/2] Cleanup cache command prints

Joe Hershberger joe.hershberger at ni.com
Wed Oct 3 22:56:17 CEST 2012


Only print when queried, not every time the setting is changed.

Signed-off-by: Joe Hershberger <joe.hershberger at ni.com>
---
 common/cmd_cache.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/common/cmd_cache.c b/common/cmd_cache.c
index 13cc3d8..5512f92 100644
--- a/common/cmd_cache.c
+++ b/common/cmd_cache.c
@@ -51,7 +51,7 @@ int do_icache(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
 			invalidate_icache_all();
 			break;
 		}
-		/* FALL TROUGH */
+		break;
 	case 1:			/* get status */
 		printf("Instruction Cache is %s\n",
 			icache_status() ? "ON" : "OFF");
-- 
1.7.11.5



More information about the U-Boot mailing list