Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1288c19f authored by Lespiau, Damien's avatar Lespiau, Damien Committed by Dave Airlie
Browse files

drm: drm_ut_debug_printk() isn't called with NULL anywmore



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: default avatarDamien Lespiau <damien.lespiau@intel.com>
Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
parent a73d4e91
Loading
Loading
Loading
Loading
+1 −5
Original line number Diff line number Diff line
@@ -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);
}