]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
gpu: drm: bridge: sii9234: remove unused bridge_to_sii9234 function
authorTom Rix <trix@redhat.com>
Sat, 18 Mar 2023 00:23:21 +0000 (20:23 -0400)
committerRobert Foss <rfoss@kernel.org>
Mon, 20 Mar 2023 09:48:25 +0000 (10:48 +0100)
clang with W=1 reports
drivers/gpu/drm/bridge/sii9234.c:870:31: error:
  unused function 'bridge_to_sii9234' [-Werror,-Wunused-function]
static inline struct sii9234 *bridge_to_sii9234(struct drm_bridge *bridge)
                              ^
This static function is not used, so remove it.

Signed-off-by: Tom Rix <trix@redhat.com>
Signed-off-by: Robert Foss <rfoss@kernel.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20230318002321.1675181-1-trix@redhat.com
drivers/gpu/drm/bridge/sii9234.c

index 099b510ff2855358b1ac8e854c5835ea66d5e795..2d17f227867bce77e25925da8be0a0709a456f68 100644 (file)
@@ -867,11 +867,6 @@ static int sii9234_init_resources(struct sii9234 *ctx,
        return 0;
 }
 
-static inline struct sii9234 *bridge_to_sii9234(struct drm_bridge *bridge)
-{
-       return container_of(bridge, struct sii9234, bridge);
-}
-
 static enum drm_mode_status sii9234_mode_valid(struct drm_bridge *bridge,
                                         const struct drm_display_info *info,
                                         const struct drm_display_mode *mode)