GPU: drm: fix style errors
This patch fixes style issues in drm_ioctl.c Signed-off-by: F.A.Sulaiman <asha.16@itfac.mrt.ac.lk> Signed-off-by: Simon Ser <contact@emersion.fr> Reviewed-by: Simon Ser <contact@emersion.fr> Link: https://patchwork.freedesktop.org/patch/msgid/20210828123942.1556-1-asha.16@itfac.mrt.ac.lk
This commit is contained in:
@@ -712,7 +712,7 @@ static const struct drm_ioctl_desc drm_ioctls[] = {
|
|||||||
DRM_IOCTL_DEF(DRM_IOCTL_MODE_REVOKE_LEASE, drm_mode_revoke_lease_ioctl, DRM_MASTER),
|
DRM_IOCTL_DEF(DRM_IOCTL_MODE_REVOKE_LEASE, drm_mode_revoke_lease_ioctl, DRM_MASTER),
|
||||||
};
|
};
|
||||||
|
|
||||||
#define DRM_CORE_IOCTL_COUNT ARRAY_SIZE( drm_ioctls )
|
#define DRM_CORE_IOCTL_COUNT ARRAY_SIZE(drm_ioctls)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* DOC: driver specific ioctls
|
* DOC: driver specific ioctls
|
||||||
@@ -821,8 +821,8 @@ long drm_ioctl(struct file *filp,
|
|||||||
if (drm_dev_is_unplugged(dev))
|
if (drm_dev_is_unplugged(dev))
|
||||||
return -ENODEV;
|
return -ENODEV;
|
||||||
|
|
||||||
if (DRM_IOCTL_TYPE(cmd) != DRM_IOCTL_BASE)
|
if (DRM_IOCTL_TYPE(cmd) != DRM_IOCTL_BASE)
|
||||||
return -ENOTTY;
|
return -ENOTTY;
|
||||||
|
|
||||||
is_driver_ioctl = nr >= DRM_COMMAND_BASE && nr < DRM_COMMAND_END;
|
is_driver_ioctl = nr >= DRM_COMMAND_BASE && nr < DRM_COMMAND_END;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user