Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 105393
b: refs/heads/master
c: 4c432a8
h: refs/heads/master
i:
  105391: ab63d84
v: v3
  • Loading branch information
Greg Kroah-Hartman authored and Linus Torvalds committed Jul 24, 2008
1 parent c6c6d48 commit 5dc67c9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f5fe35dd95549b1b419cdeb2ec3fe61fda94fa93
refs/heads/master: 4c432a8f0134504814aa8dcce6cc57c89d175604
7 changes: 7 additions & 0 deletions trunk/scripts/checkpatch.pl
Original file line number Diff line number Diff line change
Expand Up @@ -2078,6 +2078,13 @@ sub process {
WARN("kfree(NULL) is safe this check is probabally not required\n" . $hereprev);
}
}
# check for needless usb_free_urb() checks
if ($prevline =~ /\bif\s*\(([^\)]*)\)/) {
my $expr = $1;
if ($line =~ /\busb_free_urb\(\Q$expr\E\);/) {
WARN("usb_free_urb(NULL) is safe this check is probably not required\n" . $hereprev);
}
}

# warn about #ifdefs in C files
# if ($line =~ /^.\s*\#\s*if(|n)def/ && ($realfile =~ /\.c$/)) {
Expand Down

0 comments on commit 5dc67c9

Please sign in to comment.