From: Alexey Dobriyan Date: Tue, 17 Jul 2007 11:03:56 +0000 (-0700) Subject: Fix sparse false positives re BUG_ON(ptr) X-Git-Tag: v2.6.23-rc1~708 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2a41de48b81e61fbe260ae5031ebcb6f935f35fb;p=pandora-kernel.git Fix sparse false positives re BUG_ON(ptr) sparse now warns if one compares pointers with integers. However, there are false positives, like: fs/filesystems.c:72:2: warning: Using plain integer as NULL pointer Every time BUG_ON(ptr) is used, ptr is checked against integer zero. Avoid that and save ~70 false positives from allyesconfig run. mentioned by Al. Signed-off-by: Alexey Dobriyan Acked-by: Al Viro Acked-by: Josh Triplett Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed