drm/virtio: checking for NULL instead of IS_ERR
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 10 Jun 2015 19:27:11 +0000 (22:27 +0300)
committerDave Airlie <airlied@redhat.com>
Thu, 11 Jun 2015 03:16:29 +0000 (13:16 +1000)
commit2b7edcad69ecf6c452871c80a336bc3430ca9942
tree811d0575913f6352d7a545d88004410b4c11008c
parentdc9be8e2175e5e6e53456d8d52eac9b1dd7ec2a7
drm/virtio: checking for NULL instead of IS_ERR

virtio_gpu_alloc_object() returns an error pointer, it never returns
NULL.

Fixes: dc5698e80cf7 ('Add virtio gpu driver.')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/virtio/virtgpu_fb.c