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)
commit11ca40a0f8e3a788a987f14cb80d836a34d109ae
tree35f5ea2300b4c11326d566f00b61484deb3c361e
parentd6430f71805aa98d6e8fbc67e605922aefcf9ceb
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