checkpatch: warn on comparisons to jiffies
authorJoe Perches <joe@perches.com>
Wed, 3 Jul 2013 22:05:25 +0000 (15:05 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 3 Jul 2013 23:07:44 +0000 (16:07 -0700)
commit36ec19390effc9131132901e8a66a071a7b74a88
treea0b823311ee76f1ffc4c2b84f9d35446fc449272
parenta605e32ebde25dc31f943fecb30e3e28079ccd06
checkpatch: warn on comparisons to jiffies

Comparing jiffies is almost always wrong and time_before and time_after
should be used instead.

Warn on any comparison to jiffies.

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