Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm: simplify the return expression of ast_drm_resume()

Simplify the return expression.

Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: Minghao Chi <chi.minghao@zte.com.cn>
Acked-by: Thomas Zimmermann <tzimmermann@suse.de>
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20220505022208.57157-1-chi.minghao@zte.com.cn

authored by

Minghao Chi and committed by
Thomas Zimmermann
0e1759b6 931e3f3a

+1 -6
+1 -6
drivers/gpu/drm/ast/ast_drv.c
··· 159 159 160 160 static int ast_drm_resume(struct drm_device *dev) 161 161 { 162 - int ret; 163 - 164 162 if (pci_enable_device(to_pci_dev(dev->dev))) 165 163 return -EIO; 166 164 167 - ret = ast_drm_thaw(dev); 168 - if (ret) 169 - return ret; 170 - return 0; 165 + return ast_drm_thaw(dev); 171 166 } 172 167 173 168 static int ast_pm_suspend(struct device *dev)