summaryrefslogtreecommitdiff
path: root/shared-core/via_ds.c
diff options
context:
space:
mode:
authorThomas Hellstrom <unichrome@shipmail.org>2005-07-15 21:22:51 +0000
committerThomas Hellstrom <unichrome@shipmail.org>2005-07-15 21:22:51 +0000
commit567113788c030b367a28ea9253fbf34beef2789e (patch)
tree440552ee7a5cbd7b72b07f41fa5a0d036e349d6a /shared-core/via_ds.c
parent5a5478de7ab4ee2eef0308d8b4ce5c53222cd55e (diff)
VIA: Fix sparse warnings (Alexey Dobriyan)
Diffstat (limited to 'shared-core/via_ds.c')
-rw-r--r--shared-core/via_ds.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/shared-core/via_ds.c b/shared-core/via_ds.c
index daf3df75..5c71e089 100644
--- a/shared-core/via_ds.c
+++ b/shared-core/via_ds.c
@@ -133,7 +133,7 @@ memHeap_t *via_mmInit(int ofs, int size)
PMemBlock blocks;
if (size <= 0)
- return 0;
+ return NULL;
blocks = (TMemBlock *) drm_calloc(1, sizeof(TMemBlock), DRM_MEM_DRIVER);
@@ -143,7 +143,7 @@ memHeap_t *via_mmInit(int ofs, int size)
blocks->free = 1;
return (memHeap_t *) blocks;
} else
- return 0;
+ return NULL;
}
static TMemBlock *SliceBlock(TMemBlock * p,