Commit 2a7be4b4 authored by YueHaibing's avatar YueHaibing Committed by Daniel Vetter
Browse files

drm: Use PTR_ERR_OR_ZERO in drm_fb_cma_fbdev_init()

parent 49c5c076
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -124,10 +124,7 @@ int drm_fb_cma_fbdev_init(struct drm_device *dev, unsigned int preferred_bpp,

	/* dev->fb_helper will indirectly point to fbdev_cma after this call */
	fbdev_cma = drm_fbdev_cma_init(dev, preferred_bpp, max_conn_count);
	if (IS_ERR(fbdev_cma))
		return PTR_ERR(fbdev_cma);

	return 0;
	return PTR_ERR_OR_ZERO(fbdev_cma);
}
EXPORT_SYMBOL_GPL(drm_fb_cma_fbdev_init);