]> git.baikalelectronics.ru Git - kernel.git/commit
drm/omap: Remove unneeded variable assignments in omap_modeset_init
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Mon, 5 Mar 2018 12:47:47 +0000 (14:47 +0200)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Mon, 3 Sep 2018 13:13:27 +0000 (16:13 +0300)
commit2fae0f6756834f95149fb53cb84298c20f124f94
treeede3e806e90d64efb4985ba322e568e46c8a175c
parent777e43e4dcd93038e70c6439bc55d70b24eb0b1a
drm/omap: Remove unneeded variable assignments in omap_modeset_init

The crtc_idx and plane_idw variables in the main loop are always equal
to the loop counter i, use it instead. Don't unnecessarily initialize
dssdev to NULL.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/gpu/drm/omapdrm/omap_drv.c