drm: simplify drm_sysfs_destroy() via IS_ERR_OR_NULL()
authorDavid Herrmann <dh.herrmann@gmail.com>
Wed, 9 Sep 2015 12:21:29 +0000 (14:21 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 9 Sep 2015 13:03:38 +0000 (15:03 +0200)
commit26b91ae4732be89228d207c76827071c6aecc4d8
treeb951f5a79313581c1ef383159947cd629b11f335
parent3a818d350f6b5ad542175ab1f71c027787ce952e
drm: simplify drm_sysfs_destroy() via IS_ERR_OR_NULL()

Simplify `foo == NULL || IS_ERR(foo)` via IS_ERR_OR_NULL(). This is
pretty commonly used all over the kernel, especially for debugfs/sysfs
cleanup paths.

Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/drm_sysfs.c