Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 15160f90 authored by Fabio Estevam's avatar Fabio Estevam Committed by Linus Torvalds
Browse files

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: default avatarFabio Estevam <fabio.estevam@freescale.com>
Cc: Joe Perches <joe@perches.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 04941aa7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -4446,7 +4446,7 @@ sub process {
			my $expr = '\s*\(\s*' . quotemeta($1) . '\s*\)\s*;';
			if ($line =~ /\b(kfree|usb_free_urb|debugfs_remove(?:_recursive)?)$expr/) {
				WARN('NEEDLESS_IF',
				     "$1(NULL) is safe this check is probably not required\n" . $hereprev);
				     "$1(NULL) is safe and this check is probably not required\n" . $hereprev);
			}
		}