Skip to content

Commit

Permalink
drm: drm_ut_debug_printk() isn't called with NULL anywmore
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Lespiau, Damien authored and Dave Airlie committed Mar 28, 2014
1 parent a73d4e9 commit 1288c19
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions drivers/gpu/drm/drm_stub.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 1288c19

Please sign in to comment.