Avoid unnecessary call to post_word_load();
[pandora-u-boot.git] / common / cmd_log.c
index 8a7860e..8780da5 100644 (file)
@@ -93,7 +93,7 @@ void logbuff_init_ptrs (void)
        }
 #else
        /* No post routines, so we do our own checking                    */
-       if (post_word_load () != LOGBUFF_MAGIC) {
+       if (post_word != LOGBUFF_MAGIC) {
                logged_chars = log_size = log_start = 0;
                post_word_store (LOGBUFF_MAGIC);
                *ext_tag = LOGBUFF_MAGIC;