openocd: fix simple cases of NULL comparison
[fw/openocd] / src / target / armv7a.c
index 98baaf190eaa2518c0f11f8954e6ce101683cdd6..cc8c19a9b837484899c5ab52684a61ec14332fbb 100644 (file)
@@ -282,7 +282,7 @@ int armv7a_handle_cache_info_command(struct command_invocation *cmd,
                }
        }
 
-       if (l2x_cache != NULL)
+       if (l2x_cache)
                command_print(cmd, "Outer unified cache Base Address 0x%" PRIx32 ", %" PRIu32 " ways",
                        l2x_cache->base, l2x_cache->way);