diff options
author | David Herrmann <dh.herrmann@gmail.com> | 2013-07-01 20:32:58 +0200 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2013-07-02 13:34:41 +1000 |
commit | 77ef8bbc87be7ad10b410247efc6d0f10676b401 (patch) | |
tree | 9cf69a4bbf55b95eeb25a1c4b8a700db138486c7 /drivers/gpu/drm/drm_gem.c | |
parent | 6ef92fbea2b5680204da5b8796e8972109d01bd3 (diff) | |
download | blackbird-op-linux-77ef8bbc87be7ad10b410247efc6d0f10676b401.tar.gz blackbird-op-linux-77ef8bbc87be7ad10b410247efc6d0f10676b401.zip |
drm: make drm_mm_init() return void
There is no reason to return "int" as this function never fails.
Furthermore, several drivers (ast, sis) already depend on this.
Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/drm_gem.c')
-rw-r--r-- | drivers/gpu/drm/drm_gem.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/drivers/gpu/drm/drm_gem.c b/drivers/gpu/drm/drm_gem.c index bcedaf7b73b9..603f256152ef 100644 --- a/drivers/gpu/drm/drm_gem.c +++ b/drivers/gpu/drm/drm_gem.c @@ -108,12 +108,8 @@ drm_gem_init(struct drm_device *dev) return -ENOMEM; } - if (drm_mm_init(&mm->offset_manager, DRM_FILE_PAGE_OFFSET_START, - DRM_FILE_PAGE_OFFSET_SIZE)) { - drm_ht_remove(&mm->offset_hash); - kfree(mm); - return -ENOMEM; - } + drm_mm_init(&mm->offset_manager, DRM_FILE_PAGE_OFFSET_START, + DRM_FILE_PAGE_OFFSET_SIZE); return 0; } |