Skip to content

Commit 9908fb6

Browse files
JoePerchesairlied
authored andcommitted
drm: change drm_err return type to void
The return value is not used by callers of this function nor by uses of the DRM_ERROR macro so change the function to return void. Signed-off-by: Joe Perches <joe@perches.com> Reviewed-by: Jani Nikula <jani.nikula@intel.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
1 parent 94318d5 commit 9908fb6

2 files changed

Lines changed: 3 additions & 6 deletions

File tree

‎drivers/gpu/drm/drm_drv.c‎

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,22 +56,19 @@ static struct idr drm_minors_idr;
5656
struct class *drm_class;
5757
static struct dentry *drm_debugfs_root;
5858

59-
int drm_err(const char *func, const char *format, ...)
59+
void drm_err(const char *func, const char *format, ...)
6060
{
6161
struct va_format vaf;
6262
va_list args;
63-
int r;
6463

6564
va_start(args, format);
6665

6766
vaf.fmt = format;
6867
vaf.va = &args;
6968

70-
r = printk(KERN_ERR "[" DRM_NAME ":%s] *ERROR* %pV", func, &vaf);
69+
printk(KERN_ERR "[" DRM_NAME ":%s] *ERROR* %pV", func, &vaf);
7170

7271
va_end(args);
73-
74-
return r;
7572
}
7673
EXPORT_SYMBOL(drm_err);
7774

‎include/drm/drmP.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ extern __printf(2, 3)
124124
void drm_ut_debug_printk(const char *function_name,
125125
const char *format, ...);
126126
extern __printf(2, 3)
127-
int drm_err(const char *func, const char *format, ...);
127+
void drm_err(const char *func, const char *format, ...);
128128

129129
/***********************************************************************/
130130
/** \name DRM template customization defaults */

0 commit comments

Comments
 (0)