Skip to content

Commit

Permalink
drm/tidss: Drop pointless static qualifier in dispc_find_csc()
Browse files Browse the repository at this point in the history
There is no need to have the 'const struct dispc_csc_coef *coef'
variable static since new value always be assigned before use it.

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Reviewed-by: Jyri Sarha <jsarha@ti.com>
Tested-by: Jyri Sarha <jsarha@ti.com>
Signed-off-by: Jyri Sarha <jsarha@ti.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200227065057.92766-1-yuehaibing@huawei.com
  • Loading branch information
YueHaibing authored and Jyri Sarha committed Feb 28, 2020
1 parent 652f67f commit 46cf7d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/tidss/tidss_dispc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1505,7 +1505,7 @@ struct dispc_csc_coef *dispc_find_csc(enum drm_color_encoding encoding,
static void dispc_vid_csc_setup(struct dispc_device *dispc, u32 hw_plane,
const struct drm_plane_state *state)
{
static const struct dispc_csc_coef *coef;
const struct dispc_csc_coef *coef;

coef = dispc_find_csc(state->color_encoding, state->color_range);
if (!coef) {
Expand Down

0 comments on commit 46cf7d9

Please sign in to comment.