diff options
Diffstat (limited to 'drivers/char/drm/r128_cce.c')
-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) | |||
817 | for (i = 0; i < dma->buf_count; i++) { | 817 | for (i = 0; i < dma->buf_count; i++) { |
818 | buf = dma->buflist[i]; | 818 | buf = dma->buflist[i]; |
819 | buf_priv = buf->dev_private; | 819 | buf_priv = buf->dev_private; |
820 | if (buf->file_priv == 0) | 820 | if (!buf->file_priv) |
821 | return buf; | 821 | return buf; |
822 | } | 822 | } |
823 | 823 | ||