diff --git a/cmd/source.c b/cmd/source.c index 45e9794..d724d63 100644 --- a/cmd/source.c +++ b/cmd/source.c @@ -84,7 +84,7 @@ source (ulong addr, const char *fit_uname) * past the zero-terminated sequence of image lengths to get * to the actual image data */ - while (*data++ != IMAGE_PARAM_INVAL); + while (*data++); break; #endif #if defined(CONFIG_FIT)