panfrost: Drop redundant NULL check
[mesa.git] / src / gallium / drivers / vc4 / vc4_bufmgr.c
index 549c4f8f43d94d81d600445e5ff7adc753b6c592..a786e8ee939ad354320a01b1243f233d26f3ee07 100644 (file)
 #include "vc4_context.h"
 #include "vc4_screen.h"
 
-#ifdef HAVE_VALGRIND
-#include <valgrind.h>
-#include <memcheck.h>
-#define VG(x) x
-#else
-#define VG(x)
-#endif
-
 static bool dump_stats = false;
 
 static void
@@ -108,7 +100,7 @@ vc4_bo_dump_stats(struct vc4_screen *screen)
                 struct timespec time;
                 clock_gettime(CLOCK_MONOTONIC, &time);
                 fprintf(stderr, "  now:               %ld\n",
-                        time.tv_sec);
+                        (long)time.tv_sec);
         }
 }