aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/drm_ioctl.c
diff options
context:
space:
mode:
authorF.A.Sulaiman <[email protected]>2021-08-28 12:39:42 +0000
committerSimon Ser <[email protected]>2021-08-28 17:00:20 +0000
commitda8ac4bf4234890d75b71f3f16486ee641e0e908 (patch)
tree5643f3ffaa28512d44076f205b75cd41408ce629 /drivers/gpu/drm/drm_ioctl.c
parentdrm/ttm: optimize the pool shrinker a bit v2 (diff)
downloadkernel-da8ac4bf4234890d75b71f3f16486ee641e0e908.tar.gz
kernel-da8ac4bf4234890d75b71f3f16486ee641e0e908.zip
GPU: drm: fix style errors
This patch fixes style issues in drm_ioctl.c Signed-off-by: F.A.Sulaiman <[email protected]> Signed-off-by: Simon Ser <[email protected]> Reviewed-by: Simon Ser <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'drivers/gpu/drm/drm_ioctl.c')
-rw-r--r--drivers/gpu/drm/drm_ioctl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/drm/drm_ioctl.c b/drivers/gpu/drm/drm_ioctl.c
index 26f3a9ede8fe..8b8744dcf691 100644
--- a/drivers/gpu/drm/drm_ioctl.c
+++ b/drivers/gpu/drm/drm_ioctl.c
@@ -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),
};
-#define DRM_CORE_IOCTL_COUNT ARRAY_SIZE( drm_ioctls )
+#define DRM_CORE_IOCTL_COUNT ARRAY_SIZE(drm_ioctls)
/**
* DOC: driver specific ioctls
@@ -821,8 +821,8 @@ long drm_ioctl(struct file *filp,
if (drm_dev_is_unplugged(dev))
return -ENODEV;
- if (DRM_IOCTL_TYPE(cmd) != DRM_IOCTL_BASE)
- return -ENOTTY;
+ if (DRM_IOCTL_TYPE(cmd) != DRM_IOCTL_BASE)
+ return -ENOTTY;
is_driver_ioctl = nr >= DRM_COMMAND_BASE && nr < DRM_COMMAND_END;