On Wed, 2013-03-06 at 00:56 +0530, Syam Sidhardhan wrote:
> kfree on NULL pointer is a no-op.

This is true, but what's the saving?  kfree() has an identical check,
but by the time you get to it, the result of this one is cached, so it's
something like < 1 instruction cycle saving (because the instruction
will be pipelined).

If the maintainers of particular drivers want to integrate this, that's
OK, but I'd rather not do pure code churn on the older drivers.

James


--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to