Re: [PATCH] - TPM device driver layer (tpm.c|h) - 2nd repost

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Andrew Morton
Date: Tuesday, November 20, 2007 - 1:06 pm

On Tue, 20 Nov 2007 13:32:06 +0100
Richard MUSIL <richard.musil@st.com> wrote:


The code was

	/* it *should* be: chip->release != NULL */
	if (chip->release)

and the I took the comment to mean that it should be

	if (chip->release != NULL)

I was just pointing out that the test-pointer-as-truth-value trick is
smiled upon in kernel coding.


From the above it appears that the code comment misled me.
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] - TPM device driver layer (tpm.c|h), Richard MUSIL, (Thu Aug 23, 1:46 am)
Re: [PATCH] - TPM device driver layer (tpm.c|h), Greg KH, (Thu Aug 23, 2:26 am)
Re: [PATCH] - TPM device driver layer (tpm.c|h) - repost, Richard MUSIL, (Tue Sep 25, 6:14 am)
Re: [tpmdd-devel] [PATCH] - TPM device driver layer (tpm.c|h), Marcel Selhorst, (Sun Nov 18, 11:42 pm)
Re: [PATCH] - TPM device driver layer (tpm.c|h) - 2nd repost, Andrew Morton, (Tue Nov 20, 1:06 pm)