From: Fabian Frederick Date: Fri, 4 Jul 2014 19:17:15 +0000 (+0200) Subject: drm/omap: remove null test before kfree X-Git-Tag: v3.17-rc1~82^2~87^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d2c87e2d2377966450cfb4271694c77dac615f98;p=platform%2Fkernel%2Flinux-exynos.git drm/omap: remove null test before kfree Fix checkpatch warning: WARNING: kfree(NULL) is safe this check is probably not required Cc: David Airlie Cc: Tomi Valkeinen Signed-off-by: Fabian Frederick Signed-off-by: David Herrmann --- diff --git a/drivers/gpu/drm/omapdrm/omap_gem.c b/drivers/gpu/drm/omapdrm/omap_gem.c index 7c68c8a..5c36700 100644 --- a/drivers/gpu/drm/omapdrm/omap_gem.c +++ b/drivers/gpu/drm/omapdrm/omap_gem.c @@ -1179,9 +1179,7 @@ int omap_gem_op_sync(struct drm_gem_object *obj, enum omap_gem_op op) } } spin_unlock(&sync_lock); - - if (waiter) - kfree(waiter); + kfree(waiter); } return ret; }