diff options
author | Lespiau, Damien <damien.lespiau@intel.com> | 2014-03-24 11:53:16 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2014-03-27 22:57:42 -0400 |
commit | 1288c19fbefa44bac4ba0bab8aa4b2607741f0eb (patch) | |
tree | f9e222684d247dac3cc4e765562143b77d662265 | |
parent | a73d4e91fbb5ed6821ec5b906028e0e94868ef79 (diff) |
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: Damien Lespiau <damien.lespiau@intel.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
-rw-r--r-- | drivers/gpu/drm/drm_stub.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/gpu/drm/drm_stub.c b/drivers/gpu/drm/drm_stub.c index 81ed83288557..0b1a912e1b93 100644 --- a/drivers/gpu/drm/drm_stub.c +++ b/drivers/gpu/drm/drm_stub.c | |||
@@ -108,11 +108,7 @@ void drm_ut_debug_printk(const char *prefix, | |||
108 | vaf.fmt = format; | 108 | vaf.fmt = format; |
109 | vaf.va = &args; | 109 | vaf.va = &args; |
110 | 110 | ||
111 | if (function_name) | 111 | printk(KERN_DEBUG "[%s:%s], %pV", prefix, function_name, &vaf); |
112 | printk(KERN_DEBUG "[%s:%s], %pV", prefix, | ||
113 | function_name, &vaf); | ||
114 | else | ||
115 | printk(KERN_DEBUG "%pV", &vaf); | ||
116 | 112 | ||
117 | va_end(args); | 113 | va_end(args); |
118 | } | 114 | } |