drm: drm_ut_debug_printk() isn't called with NULL anywmore
authorLespiau, Damien <damien.lespiau@intel.com>
Mon, 24 Mar 2014 15:53:16 +0000 (15:53 +0000)
committerDave Airlie <airlied@redhat.com>
Fri, 28 Mar 2014 02:57:42 +0000 (12:57 +1000)
The DRM_LOG* macros where the only sites where drm_ut_debug_printk was
called with NULL arguments for prefix and function_name. Now that they
are gone, we can remove that case.

Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_stub.c

index 81ed83288557f2c803e3732844ea524849eee35a..0b1a912e1b93445c7d5c314df5fc25461849368e 100644 (file)
@@ -108,11 +108,7 @@ void drm_ut_debug_printk(const char *prefix,
        vaf.fmt = format;
        vaf.va = &args;
 
-       if (function_name)
-               printk(KERN_DEBUG "[%s:%s], %pV", prefix,
-                      function_name, &vaf);
-       else
-               printk(KERN_DEBUG "%pV", &vaf);
+       printk(KERN_DEBUG "[%s:%s], %pV", prefix, function_name, &vaf);
 
        va_end(args);
 }