]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
drm/vc4: remove unused function
authorJiapeng Chong <jiapeng.chong@linux.alibaba.com>
Thu, 15 Apr 2021 08:45:25 +0000 (16:45 +0800)
committerMaxime Ripard <maxime@cerno.tech>
Wed, 21 Apr 2021 08:10:47 +0000 (10:10 +0200)
Fix the following clang warning:

drivers/gpu/drm/vc4/vc4_vec.c:201:1: warning: unused function
'to_vc4_vec_connector' [-Wunused-function].

Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Link: https://patchwork.freedesktop.org/patch/msgid/1618476325-112629-1-git-send-email-jiapeng.chong@linux.alibaba.com
drivers/gpu/drm/vc4/vc4_vec.c

index bd5b8eb58b180696b217f914d550af1419a2978d..090529d0d5dcda1995eb67a50ceba7f798abcc7a 100644 (file)
@@ -197,12 +197,6 @@ struct vc4_vec_connector {
        struct drm_encoder *encoder;
 };
 
-static inline struct vc4_vec_connector *
-to_vc4_vec_connector(struct drm_connector *connector)
-{
-       return container_of(connector, struct vc4_vec_connector, base);
-}
-
 enum vc4_vec_tv_mode_id {
        VC4_VEC_TV_MODE_NTSC,
        VC4_VEC_TV_MODE_NTSC_J,