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 _______________________________________________ dri-devel mailing list dri-devel@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/dri-devel