diff options
author | Tian Tao <tiantao6@hisilicon.com> | 2020-12-11 03:17:17 +0100 |
---|---|---|
committer | Tian Tao <tiantao6@hisilicon.com> | 2020-12-14 07:57:27 +0100 |
commit | dc3793038d22690037eb4271c0f3fe70eb51b9eb (patch) | |
tree | 9b06cd75a9d042455519cf201badc34e2ed344e2 /drivers/gpu/drm/drm_drv.c | |
parent | drm/vkms: Unset preferred_depth (diff) | |
download | linux-dc3793038d22690037eb4271c0f3fe70eb51b9eb.tar.xz linux-dc3793038d22690037eb4271c0f3fe70eb51b9eb.zip |
drm/drv: Remove invalid assignments
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>
Link: https://patchwork.freedesktop.org/patch/msgid/1607653037-37785-1-git-send-email-tiantao6@hisilicon.com
Diffstat (limited to 'drivers/gpu/drm/drm_drv.c')
-rw-r--r-- | drivers/gpu/drm/drm_drv.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/gpu/drm/drm_drv.c b/drivers/gpu/drm/drm_drv.c index b92f7fd0e85a..ddf7eabdbf3b 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, |