drm/sun4i: Drop useless assignment in sun4i_layers_init
authorChen-Yu Tsai <wens@csie.org>
Fri, 17 Feb 2017 03:13:28 +0000 (11:13 +0800)
committerMaxime Ripard <maxime.ripard@free-electrons.com>
Tue, 7 Mar 2017 21:15:15 +0000 (22:15 +0100)
commit8a16469b74af0fb584686e5e18d2cf3570424e4b
tree22c5ce8702455fa40e5b40d86bce922e36e4c7a1
parentf43fbe7a59b6e2fd8b366321e5163c3499b80b26
drm/sun4i: Drop useless assignment in sun4i_layers_init

The assignment found in the main loop in sun4i_layers_init:

struct sun4i_layer *layer = layers[i];

is useless as it gets overwritten by the next line:

layer = sun4i_layer_init_one(drm, plane);

Drop the assignment.

Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
drivers/gpu/drm/sun4i/sun4i_layer.c