drm/v3d: Checking for NULL vs IS_ERR()
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 18 May 2018 08:10:41 +0000 (11:10 +0300)
committerEric Anholt <eric@anholt.net>
Mon, 21 May 2018 17:44:33 +0000 (10:44 -0700)
commit17e23993f297467bae946a46e44f945d8dae93f8
tree13c8fdd3b5ac06904de4b568eda87d732228d9bb
parente8b58d6de1fe9119018ed9bbeecf373dcc397b8d
drm/v3d: Checking for NULL vs IS_ERR()

The v3d_fence_create() only returns error pointers on error.  It never
returns NULL.

Fixes: 57692c94dcbe ("drm/v3d: Introduce a new DRM driver for Broadcom V3D V3.x+")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Eric Anholt <eric@anholt.net>
Link: https://patchwork.freedesktop.org/patch/msgid/20180518081041.GC28335@mwanda
drivers/gpu/drm/v3d/v3d_sched.c