]> git.baikalelectronics.ru Git - kernel.git/commit
drm/ast: remove duplicate assignment of ast_crtc_funcs member
authorJason Yan <yanaijie@huawei.com>
Wed, 29 Apr 2020 14:10:10 +0000 (22:10 +0800)
committerThomas Zimmermann <tzimmermann@suse.de>
Thu, 30 Apr 2020 08:41:05 +0000 (10:41 +0200)
commita832011175960ad5d770cb625acdad0d8d5c7eaf
tree6f05e9f1070728d80e3e98e03dd8257c0e8ced9c
parent71e469f96bd8ac07aa03148d3c8d6de7092f0419
drm/ast: remove duplicate assignment of ast_crtc_funcs member

The struct member 'set_config' was assigned twice:

static const struct drm_crtc_funcs ast_crtc_funcs = {
.reset = ast_crtc_reset,
.set_config = drm_crtc_helper_set_config,
......
.set_config = drm_atomic_helper_set_config,
......
};

Since the second one is which we use now in fact, we can remove the
first one.

This fixes the following coccicheck warning:

drivers/gpu/drm/ast/ast_mode.c:932:50-51: set_config: first occurrence
line 934, second occurrence line 937

Signed-off-by: Jason Yan <yanaijie@huawei.com>
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20200429141010.8445-1-yanaijie@huawei.com
drivers/gpu/drm/ast/ast_mode.c