diff options
| author | Alexey Dobriyan <[email protected]> | 2007-07-17 11:03:56 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2007-07-17 17:23:03 +0000 |
| commit | 2a41de48b81e61fbe260ae5031ebcb6f935f35fb (patch) | |
| tree | 3e9697a535f09a5f3c06c61982c7565b858ff46c /drivers/misc/ibmasm/module.c | |
| parent | destroy_workqueue() can livelock (diff) | |
| download | kernel-2a41de48b81e61fbe260ae5031ebcb6f935f35fb.tar.gz kernel-2a41de48b81e61fbe260ae5031ebcb6f935f35fb.zip | |
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 <[email protected]>
Acked-by: Al Viro <[email protected]>
Acked-by: Josh Triplett <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'drivers/misc/ibmasm/module.c')
0 files changed, 0 insertions, 0 deletions
