diff mbox series

drm/drv: Remove invalid assignments

Message ID 1607653037-37785-1-git-send-email-tiantao6@hisilicon.com (mailing list archive)
State New, archived
Headers show
Series drm/drv: Remove invalid assignments | expand

Commit Message

Tian Tao Dec. 11, 2020, 2:17 a.m. UTC
it's not necessary to assign a value of 0 to ret here, because if
the previous functions were executed correctly, ret would be 0.

Signed-off-by: Tian Tao <tiantao6@hisilicon.com>
---
 drivers/gpu/drm/drm_drv.c | 2 --
 1 file changed, 2 deletions(-)

Comments

Simon Ser Dec. 11, 2020, 8:49 a.m. UTC | #1
On Friday, December 11th, 2020 at 3:17 AM, Tian Tao <tiantao6@hisilicon.com> wrote:

> it's not necessary to assign a value of 0 to ret here, because if
> the previous functions were executed correctly, ret would be 0.
>
> Signed-off-by: Tian Tao <tiantao6@hisilicon.com>

Reviewed-by: Simon Ser <contact@emersion.fr>
diff mbox series

Patch

diff --git a/drivers/gpu/drm/drm_drv.c b/drivers/gpu/drm/drm_drv.c
index b92f7fd..ddf7eab 100644
--- a/drivers/gpu/drm/drm_drv.c
+++ b/drivers/gpu/drm/drm_drv.c
@@ -894,8 +894,6 @@  int drm_dev_register(struct drm_device *dev, unsigned long flags)
 	if (drm_core_check_feature(dev, DRIVER_MODESET))
 		drm_modeset_register_all(dev);
 
-	ret = 0;
-
 	DRM_INFO("Initialized %s %d.%d.%d %s for %s on minor %d\n",
 		 driver->name, driver->major, driver->minor,
 		 driver->patchlevel, driver->date,