diff options
author | Harvey Harrison <harvey.harrison@gmail.com> | 2008-04-28 23:13:20 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-04-29 02:29:18 +0200 |
commit | 8da56309f04d76a474791fd27b33ddd52062bcd6 (patch) | |
tree | 1d54c09c90511c7f9696dda388f31fdfae15f779 /drivers/char/drm | |
parent | mm: fix integer as NULL pointer warnings (diff) | |
download | linux-8da56309f04d76a474791fd27b33ddd52062bcd6.tar.xz linux-8da56309f04d76a474791fd27b33ddd52062bcd6.zip |
drivers: atm, char fix integer as NULL pointer warnings
drivers/atm/nicstar.c:418:25: warning: Using plain integer as NULL pointer
drivers/char/drm/r128_cce.c:820:25: warning: Using plain integer as NULL pointer
drivers/char/tty_io.c:1183:10: warning: Using plain integer as NULL pointer
Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/char/drm')
-rw-r--r-- | drivers/char/drm/r128_cce.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/drm/r128_cce.c b/drivers/char/drm/r128_cce.c index f36adbd3aaf5..c31afbde62e7 100644 --- a/drivers/char/drm/r128_cce.c +++ b/drivers/char/drm/r128_cce.c @@ -817,7 +817,7 @@ static struct drm_buf *r128_freelist_get(struct drm_device * dev) for (i = 0; i < dma->buf_count; i++) { buf = dma->buflist[i]; buf_priv = buf->dev_private; - if (buf->file_priv == 0) + if (!buf->file_priv) return buf; } |