On Tue, Mar 6, 2018 at 11:40 AM, Dan Carpenter <dan.carpenter@xxxxxxxxxx> wrote: > If platform_device_alloc() fails, then we should return -ENOMEM instead > of returning success. I've also removed the "rv" initialization so that > GCC can maybe detect if we forget to set it in the future. > > Signed-off-by: Dan Carpenter <dan.carpenter@xxxxxxxxxx> > --- > v2: Don't initialize "rv" and fix a typo in the commit message This addresses my comment, so Acked-by: Arnd Bergmann <arnd@xxxxxxxx> -- To unsubscribe from this list: send the line "unsubscribe kernel-janitors" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html