]> rtime.felk.cvut.cz Git - socketcan-devel.git/commit
Device interface coding style cleanup (dev.c, dev.h)
authorwolf <wolf@030b6a49-0b11-0410-94ab-b0dab22257f2>
Wed, 11 Jun 2008 13:56:54 +0000 (13:56 +0000)
committerwolf <wolf@030b6a49-0b11-0410-94ab-b0dab22257f2>
Wed, 11 Jun 2008 13:56:54 +0000 (13:56 +0000)
commit1eac6469037d804623287bd4392db5f733dfe6c4
treeeeba9347524c445515c51b33615c98fa862023cb
parent1b40c43e4078737161023e350a62abcfad2f385e
Device interface coding style cleanup (dev.c, dev.h)

According to Linux coding style:

- Don't use assignments in if statements.
- EXPORT_SYMBOL() has to follow directly it's function.
- Use the standard __func_ instead of gcc specific __FUNCTION__.
- Labels should not be indented.
- No braces should be put around single statements.
- Pointers have to be written as "foo *bar", not "foo * bar".
- Static data doesn't have to be initialized with 0.

Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
git-svn-id: svn://svn.berlios.de//socketcan/trunk@762 030b6a49-0b11-0410-94ab-b0dab22257f2
kernel/2.6/drivers/net/can/dev.c
kernel/2.6/include/linux/can/dev.h