drm: Simplify return value handling in drm_crtc.c
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 12 Nov 2014 10:59:47 +0000 (11:59 +0100)
committerDave Airlie <airlied@redhat.com>
Fri, 14 Nov 2014 23:40:33 +0000 (09:40 +1000)
commitbaf698b0496e93f2737b9046d3b1892c55133b0d
tree96605b931839b37fcd34284f2ae39bfa04702088
parentb0654103f55ebae8f72700b37f152942f34806cc
drm: Simplify return value handling in drm_crtc.c

While looking through drm_crtc.c to double-check make locking changes
I've noticed that there's a few other places that would now benefit
from simplified return value handling.

So let's flatten the control flow and replace and always 0 ret with 0
where possible.

Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Reviewed-by: Sean Paul <seanpaul@chromium.org>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_crtc.c