]> git.baikalelectronics.ru Git - kernel.git/commit
checkpatch: improve warning message for "needless if" case
authorFabio Estevam <fabio.estevam@freescale.com>
Wed, 10 Dec 2014 23:51:40 +0000 (15:51 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 11 Dec 2014 01:41:11 +0000 (17:41 -0800)
commit6eb754b7232fd8979fed3f07ecadf4e4a48f02e9
tree43eec7a6f315dffd884646812caf55713430b1a1
parent9dab1061e0ac3b36f2b58ad9e2ee8fef2df9183a
checkpatch: improve warning message for "needless if" case

Add an 'and' to the sentence so that it looks better:

  WARNING: debugfs_remove(NULL) is safe and this check is probably not required

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.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