[PATCH v2] fsl_elbc_nand: fix mtd name

Scott Wood scottwood at freescale.com
Tue Mar 18 12:11:39 EDT 2008


On Tue, Mar 18, 2008 at 06:58:14PM +0300, Anton Vorontsov wrote:
> Oops, forgot the NULL checking.
[snip] 
> +	if (priv->mtd.name)
> +		kfree(priv->mtd.name);
> +

Not needed; kfree(NULL) is a no-op.

-Scott



More information about the linux-mtd mailing list