[PATCH] jffs2 whitespace

Peter Grayson pgrayson at realmsys.com
Thu Sep 22 20:05:49 EDT 2005


I'm not sure if anyone else really cares about these kind of cleanup
changes, but just in case someone does, here is a patch that fixes up
several whitespace issues in the jffs2 code.

I believe all of these changes are consistent with what the mtd
developers like to see in the code. There seems to be a lot of precedent
for all of these changes.

There are no functional changes in this patch.

Here are the specific issues addressed:

* Remove all trailing whitespace
* Use tab-indentation consistently (there was some space indentation)
* Consistent placement of parenthesis for "if", "for", "while", and
"switch" expressions (i.e. "if (a == b)" instead of "if( a == b )")
* Space follows all commas
* Space around binary operators (i.e. "a = b + c;" instead of "a=b+c;")
* Opening brace of function definition on its own line
* Put the "else" on the same line as the preceding and following braces

This is a rather large patch, but the changes are trivial. If this patch
goes over well, I would be happy to create a similar patch for the rest
of the mtd code.

Pete
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jffs2-whitespace.patch
Type: text/x-patch
Size: 305911 bytes
Desc: not available
Url : http://lists.infradead.org/pipermail/linux-mtd/attachments/20050922/01bc240a/attachment.bin 


More information about the linux-mtd mailing list