On Thu, Mar 13, 2003 at 10:03:08PM +0000, Russell King wrote:
> > + if (buf)
> > + kfree(buf);
> kfree(NULL); is valid - you don't need this check.
Almost every place I can think of does just this, so I do not see why this
particular piece of code should be different.
Bye,
Oleg
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/