Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d2c87e2d authored by Fabian Frederick's avatar Fabian Frederick Committed by David Herrmann
Browse files

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: default avatarFabian Frederick <fabf@skynet.be>
Signed-off-by: default avatarDavid Herrmann <dh.herrmann@gmail.com>
parent a8ba29cd
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -1179,8 +1179,6 @@ int omap_gem_op_sync(struct drm_gem_object *obj, enum omap_gem_op op)
			}
		}
		spin_unlock(&sync_lock);

		if (waiter)
		kfree(waiter);
	}
	return ret;