Re: TPM driver changes to support multiple locality

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Agarwal, Lomesh <lomesh.agarwal@...>
Cc: <Valdis.Kletnieks@...>, <linux-kernel@...>
Date: Thursday, October 11, 2007 - 2:54 pm

On Thu, 11 Oct 2007 11:33:35 -0700 Agarwal, Lomesh wrote:


Observe/use kernel coding style.
Run the patch thru scripts/checkpatch.pl and check its suggestions.
Use "diffstat -p1 -w70" and put that summary near the top of the
patch (after the patch description).

Use -p option of diff to generate the diff so that reviewers
can see the function name that patch blocks apply to.

Use tabs instead of spaces for indenting.
More below.


Indent above/below the same amount (1 tab, not spaces).


	if (


	if ((


No need to init this to 0.


Use same indenting as surrounding code.


Looks like all of those "<< 12"s (mostly in header file) could use
some helpers.


Use some prefix identity string that tells the use what module
failed here.


No need to init to 0 or NULL.

But why is devname global here?
could it be in the function below or is it used later?
A quick scan finds only local function use below...



---
~Randy
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
TPM driver changes to support multiple locality, Agarwal, Lomesh, (Tue Oct 9, 6:51 pm)
RE: TPM driver changes to support multiple locality, Agarwal, Lomesh, (Thu Oct 11, 2:33 pm)
Re: TPM driver changes to support multiple locality, Arjan van de Ven, (Thu Oct 11, 5:41 pm)
RE: TPM driver changes to support multiple locality, Agarwal, Lomesh, (Thu Oct 11, 5:55 pm)
Re: TPM driver changes to support multiple locality, Randy Dunlap, (Thu Oct 11, 2:54 pm)
RE: TPM driver changes to support multiple locality, Agarwal, Lomesh, (Thu Oct 11, 5:08 pm)
Re: TPM driver changes to support multiple locality, Randy Dunlap, (Thu Oct 11, 5:39 pm)
RE: TPM driver changes to support multiple locality, Agarwal, Lomesh, (Thu Oct 11, 6:46 pm)
Re: TPM driver changes to support multiple locality, Randy Dunlap, (Thu Oct 11, 7:02 pm)
RE: TPM driver changes to support multiple locality, Agarwal, Lomesh, (Thu Oct 11, 7:33 pm)
Re: TPM driver changes to support multiple locality, Jan Engelhardt, (Thu Oct 11, 3:12 pm)
RE: TPM driver changes to support multiple locality, Agarwal, Lomesh, (Wed Oct 10, 5:09 pm)