checkpatch: consolidate if (foo) bar(foo) checks and add debugfs_remove
authorAndy Whitcroft <apw@canonical.com>
Tue, 18 Dec 2012 00:01:52 +0000 (16:01 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 18 Dec 2012 01:15:19 +0000 (17:15 -0800)
commit03df4b51f33e1fdd35fe7bc19f1f450726395207
tree13994b0b62313a4e0f93c1f6c349b01c53ea958e
parent78e3f1f01d23c1a0d5828669d35afa2e7951987d
checkpatch: consolidate if (foo) bar(foo) checks and add debugfs_remove

Consolidate the if (foo) bar(foo) detectors into a single check.  Add
debugfs_remove and family.

Based on a patch by Constantine Shulyupin.

Signed-off-by: Andy Whitcroft <apw@canonical.com>
Cc: Constantine Shulyupin <const@MakeLinux.com>.
Cc: 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