drm/prime: clarify logic a bit in drm_gem_prime_fd_to_handle
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 14 Aug 2013 22:02:43 +0000 (00:02 +0200)
committerDave Airlie <airlied@redhat.com>
Wed, 21 Aug 2013 02:53:46 +0000 (12:53 +1000)
commit84341c280acb8217a301344082c7ad8b9af870a6
treea81fd041cef7ccc45cc161faa15f2564ffedc4a0
parentbdf655de47b0d17ee2efc3bea5f617445ff77adc
drm/prime: clarify logic a bit in drm_gem_prime_fd_to_handle

if (!ret) implies that ret == 0, so no need to clear it again. And
explicitly check for ret == 0 to indicate that we're checking an errno
integer.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_prime.c