[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20200921131030.91927-1-miaoqinglang@huawei.com>
Date: Mon, 21 Sep 2020 21:10:30 +0800
From: Qinglang Miao <miaoqinglang@...wei.com>
To: Maarten Lankhorst <maarten.lankhorst@...ux.intel.com>,
Maxime Ripard <mripard@...nel.org>,
Thomas Zimmermann <tzimmermann@...e.de>,
David Airlie <airlied@...ux.ie>,
Daniel Vetter <daniel@...ll.ch>
CC: <dri-devel@...ts.freedesktop.org>, <linux-kernel@...r.kernel.org>,
Qinglang Miao <miaoqinglang@...wei.com>
Subject: [PATCH -next] gpu/drm: simplify the return expression of drm_agp_info_ioctl()
Simplify the return expression.
Signed-off-by: Qinglang Miao <miaoqinglang@...wei.com>
---
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
Powered by blists - more mailing lists