drm: Unify and fix idr error handling
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 15 Mar 2012 17:58:31 +0000 (19:58 +0200)
committerDave Airlie <airlied@redhat.com>
Tue, 24 Apr 2012 08:50:20 +0000 (09:50 +0100)
commitf1ae126cdf1d1514da6e89a248232a7f7d315fe0
treeb698a6cfeb735df7873865614f5f834fbcdaace9
parent343d4a79fdaeb8753201324c03fbc108f4e62636
drm: Unify and fix idr error handling

The error handling code w.r.t. idr usage looks inconsistent.

In the case of drm_mode_object_get() and drm_ctxbitmap_next() the error
handling is also incomplete.

Unify the code to follow the same pattern always.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_context.c
drivers/gpu/drm/drm_crtc.c
drivers/gpu/drm/drm_gem.c
drivers/gpu/drm/drm_stub.c
This page took 0.025426 seconds and 5 git commands to generate.