[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Thu, 5 May 2011 22:37:53 +0200 (CEST)
From: Jesper Juhl <jj@...osbits.net>
To: J Freyensee <james_p_freyensee@...ux.intel.com>
cc: gregkh@...e.de, linux-kernel@...r.kernel.org,
suhail.ahmed@...el.com, christophe.guerard@...el.com
Subject: Re: [PATCH 3/4] Intel PTI implementaiton of MIPI 1149.7.
On Thu, 5 May 2011, J Freyensee wrote:
[...]
>
> I'm no means an expert in the kernel, but I assume kfree() is like C
> free(), that it's a nop if it receives a NULL value?
>
Yes. kfree(NULL) is a nop, so you can avoid the conditional branch.
--
Jesper Juhl <jj@...osbits.net> http://www.chaosbits.net/
Don't top-post http://www.catb.org/jargon/html/T/top-post.html
Plain text mails only, please.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists