diff options
author | Thierry Reding <treding@nvidia.com> | 2014-07-21 13:15:51 +0200 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2014-07-22 10:58:21 +1000 |
commit | ee3939e07920f4a5405aba5f40529fd0fdd1dfb5 (patch) | |
tree | 911e7463ed10512cb32346fd4004c48164910eb3 /drivers/gpu/drm/mgag200 | |
parent | d3cf40ed7fa1b56bd53d3b52eddf44d0e3c3ec20 (diff) | |
download | op-kernel-dev-ee3939e07920f4a5405aba5f40529fd0fdd1dfb5.zip op-kernel-dev-ee3939e07920f4a5405aba5f40529fd0fdd1dfb5.tar.gz |
drm/ttm: Fix a few sparse warnings
The final parameter to ttm_bo_reserve() is a pointer, therefore callers
should use NULL instead of 0.
Fixes a bunch of sparse warnings of this type:
warning: Using plain integer as NULL pointer
Signed-off-by: Thierry Reding <treding@nvidia.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/mgag200')
-rw-r--r-- | drivers/gpu/drm/mgag200/mgag200_drv.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/mgag200/mgag200_drv.h b/drivers/gpu/drm/mgag200/mgag200_drv.h index cf11ee6..80de23d 100644 --- a/drivers/gpu/drm/mgag200/mgag200_drv.h +++ b/drivers/gpu/drm/mgag200/mgag200_drv.h @@ -280,7 +280,7 @@ static inline int mgag200_bo_reserve(struct mgag200_bo *bo, bool no_wait) { int ret; - ret = ttm_bo_reserve(&bo->bo, true, no_wait, false, 0); + ret = ttm_bo_reserve(&bo->bo, true, no_wait, false, NULL); if (ret) { if (ret != -ERESTARTSYS && ret != -EBUSY) DRM_ERROR("reserve failed %p\n", bo); |