Re: [PATCH] drm/ati_pcigart: Fix error code in drm_ati_pcigart_init()

2018-12-17 Thread Daniel Vetter
On Mon, Dec 17, 2018 at 10:03:44AM +0300, Dan Carpenter wrote: > The drm_ati_pcigart_init() function was originally suppose to return one > on success and zero on failure, but these days it returns a mix of > zero, one and -ENOMEM on failure. > > This patch cleans it up and modifies the caller so

[PATCH] drm/ati_pcigart: Fix error code in drm_ati_pcigart_init()

2018-12-16 Thread Dan Carpenter
The drm_ati_pcigart_init() function was originally suppose to return one on success and zero on failure, but these days it returns a mix of zero, one and -ENOMEM on failure. This patch cleans it up and modifies the caller so now the function returns zero on success and negative error codes on