diff options
author | Alexey Dobriyan <adobriyan@gmail.com> | 2005-07-27 14:43:56 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-07-27 19:25:54 -0400 |
commit | bbaf364103cee15c895e2086723d0ad9ef47ae99 (patch) | |
tree | 50ba44d1a55f00c2d328a6943acc4495337b7020 /drivers/char/drm/via_ds.c | |
parent | db1de1595d03d3ddea3e0548b20decb0a32e4258 (diff) |
[PATCH] drm: via: fix sparse warnings
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Cc: Dave Airlie <airlied@linux.ie>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/char/drm/via_ds.c')
-rw-r--r-- | drivers/char/drm/via_ds.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/char/drm/via_ds.c b/drivers/char/drm/via_ds.c index daf3df75a20e..5c71e089246c 100644 --- a/drivers/char/drm/via_ds.c +++ b/drivers/char/drm/via_ds.c | |||
@@ -133,7 +133,7 @@ memHeap_t *via_mmInit(int ofs, int size) | |||
133 | PMemBlock blocks; | 133 | PMemBlock blocks; |
134 | 134 | ||
135 | if (size <= 0) | 135 | if (size <= 0) |
136 | return 0; | 136 | return NULL; |
137 | 137 | ||
138 | blocks = (TMemBlock *) drm_calloc(1, sizeof(TMemBlock), DRM_MEM_DRIVER); | 138 | blocks = (TMemBlock *) drm_calloc(1, sizeof(TMemBlock), DRM_MEM_DRIVER); |
139 | 139 | ||
@@ -143,7 +143,7 @@ memHeap_t *via_mmInit(int ofs, int size) | |||
143 | blocks->free = 1; | 143 | blocks->free = 1; |
144 | return (memHeap_t *) blocks; | 144 | return (memHeap_t *) blocks; |
145 | } else | 145 | } else |
146 | return 0; | 146 | return NULL; |
147 | } | 147 | } |
148 | 148 | ||
149 | static TMemBlock *SliceBlock(TMemBlock * p, | 149 | static TMemBlock *SliceBlock(TMemBlock * p, |