]> git.baikalelectronics.ru Git - kernel.git/commit
checkpatch: avoid multiple line dereferences
authorJoe Perches <joe@perches.com>
Tue, 13 Dec 2016 00:46:31 +0000 (16:46 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 13 Dec 2016 02:55:10 +0000 (18:55 -0800)
commit9d41a67c484dfdbbc06833ce42ca21ca3b46d4db
tree35f5ea2300b4c11326d566f00b61484deb3c361e
parent0b1381dbf63c7d707e04f46f3468fb887dfe66cd
checkpatch: avoid multiple line dereferences

Code that puts a single dereferencing identifier on multiple lines like:

     struct_identifier->member[index].
member = <foo>;

is generally hard to follow.

Prefer that dereferencing identifiers be single line.

Link: http://lkml.kernel.org/r/e9c191ae3f41bedc8ffd5c0fbcc5a1cec1d1d2df.1478120869.git.joe@perches.com
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
scripts/checkpatch.pl