Re: [PATCH] mm: initialize kmem_cache pointer to NULL
From: David Rientjes
Date: Wed Oct 21 2015 - 16:34:55 EST
On Tue, 20 Oct 2015, Alexandru Moise wrote:
> The assignment to NULL within the error condition was written
> in a 2014 patch to suppress a compiler warning.
> However it would be cleaner to just initialize the kmem_cache
> to NULL and just return it in case of an error condition.
>
> Signed-off-by: Alexandru Moise <00moses.alexander00@xxxxxxxxx>
Acked-by: David Rientjes <rientjes@xxxxxxxxxx>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/