Commit d4242216 authored by ye xingchen's avatar ye xingchen Committed by Alex Deucher
Browse files

drm/radeon: Remove the unneeded result variable



Return the value radeon_drm_ioctl() directly instead of storing it in
another redundant variable.

Reported-by: default avatarZeal Robot <zealci@zte.com.cn>
Signed-off-by: default avatarye xingchen <ye.xingchen@zte.com.cn>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 8a948b1b
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -512,14 +512,11 @@ long radeon_drm_ioctl(struct file *filp,
static long radeon_kms_compat_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
{
	unsigned int nr = DRM_IOCTL_NR(cmd);
	int ret;

	if (nr < DRM_COMMAND_BASE)
		return drm_compat_ioctl(filp, cmd, arg);

	ret = radeon_drm_ioctl(filp, cmd, arg);

	return ret;
	return radeon_drm_ioctl(filp, cmd, arg);
}
#endif