[PATCH -next] gpu/drm: simplify the return expression of drm_agp_info_ioctl()
From: Qinglang Miao
Date: Mon Sep 21 2020 - 09:13:38 EST
Simplify the return expression.
Signed-off-by: Qinglang Miao <miaoqinglang@xxxxxxxxxx>
---
drivers/gpu/drm/drm_agpsupport.c | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/drivers/gpu/drm/drm_agpsupport.c b/drivers/gpu/drm/drm_agpsupport.c
index 4c7ad46fd..2405785ae 100644
--- a/drivers/gpu/drm/drm_agpsupport.c
+++ b/drivers/gpu/drm/drm_agpsupport.c
@@ -83,13 +83,8 @@ int drm_agp_info_ioctl(struct drm_device *dev, void *data,
struct drm_file *file_priv)
{
struct drm_agp_info *info = data;
- int err;
- err = drm_agp_info(dev, info);
- if (err)
- return err;
-
- return 0;
+ return drm_agp_info(dev, info);
}
/**
--
2.23.0