drm/ttm: Fix a few sparse warnings
authorThierry Reding <treding@nvidia.com>
Mon, 21 Jul 2014 11:15:51 +0000 (13:15 +0200)
committerDave Airlie <airlied@redhat.com>
Tue, 22 Jul 2014 00:58:21 +0000 (10:58 +1000)
commitee3939e07920f4a5405aba5f40529fd0fdd1dfb5
tree911e7463ed10512cb32346fd4004c48164910eb3
parentd3cf40ed7fa1b56bd53d3b52eddf44d0e3c3ec20
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>
12 files changed:
drivers/gpu/drm/ast/ast_drv.h
drivers/gpu/drm/bochs/bochs_fbdev.c
drivers/gpu/drm/bochs/bochs_kms.c
drivers/gpu/drm/cirrus/cirrus_drv.h
drivers/gpu/drm/mgag200/mgag200_drv.h
drivers/gpu/drm/nouveau/nouveau_bo.c
drivers/gpu/drm/nouveau/nouveau_gem.c
drivers/gpu/drm/qxl/qxl_object.h
drivers/gpu/drm/vmwgfx/vmwgfx_dmabuf.c
drivers/gpu/drm/vmwgfx/vmwgfx_drv.c
drivers/gpu/drm/vmwgfx/vmwgfx_kms.c
drivers/gpu/drm/vmwgfx/vmwgfx_resource.c