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

Commit 9908fb65 authored by Joe Perches's avatar Joe Perches Committed by Dave Airlie
Browse files

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: default avatarJoe Perches <joe@perches.com>
Reviewed-by: default avatarJani Nikula <jani.nikula@intel.com>
Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
parent 94318d50
Loading
Loading
Loading
Loading
+2 −5
Original line number Diff line number Diff line
@@ -56,22 +56,19 @@ static struct idr drm_minors_idr;
struct class *drm_class;
static struct dentry *drm_debugfs_root;

int drm_err(const char *func, const char *format, ...)
void drm_err(const char *func, const char *format, ...)
{
	struct va_format vaf;
	va_list args;
	int r;

	va_start(args, format);

	vaf.fmt = format;
	vaf.va = &args;

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

	va_end(args);

	return r;
}
EXPORT_SYMBOL(drm_err);

+1 −1
Original line number Diff line number Diff line
@@ -124,7 +124,7 @@ extern __printf(2, 3)
void drm_ut_debug_printk(const char *function_name,
			 const char *format, ...);
extern __printf(2, 3)
int drm_err(const char *func, const char *format, ...);
void drm_err(const char *func, const char *format, ...);

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