drm/omap: remove null test before kfree

Fix checkpatch warning:
WARNING: kfree(NULL) is safe this check is probably not required

Cc: David Airlie <airlied@linux.ie>
Cc: Tomi Valkeinen <tomi.valkeinen@ti.com>
Signed-off-by: Fabian Frederick <fabf@skynet.be>
Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
This commit is contained in:
Fabian Frederick 2014-07-04 21:17:15 +02:00 committed by David Herrmann
parent a8ba29cd33
commit d2c87e2d23

View file

@ -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;
}