Skip to content

Commit fd35174

Browse files
Tom Rixzackr
authored andcommitted
drm/vmwgfx: remove unused vmw_overlay function
clang with W=1 reports drivers/gpu/drm/vmwgfx/vmwgfx_overlay.c:56:35: error: unused function 'vmw_overlay' [-Werror,-Wunused-function] static inline struct vmw_overlay *vmw_overlay(struct drm_device *dev) ^ This function is not used, so remove it. Signed-off-by: Tom Rix <[email protected]> Reviewed-by: Nick Desaulniers <[email protected]> Signed-off-by: Zack Rusin <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent a37a512 commit fd35174

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

drivers/gpu/drm/vmwgfx/vmwgfx_overlay.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,6 @@ struct vmw_overlay {
5353
struct vmw_stream stream[VMW_MAX_NUM_STREAMS];
5454
};
5555

56-
static inline struct vmw_overlay *vmw_overlay(struct drm_device *dev)
57-
{
58-
struct vmw_private *dev_priv = vmw_priv(dev);
59-
return dev_priv ? dev_priv->overlay_priv : NULL;
60-
}
61-
6256
struct vmw_escape_header {
6357
uint32_t cmd;
6458
SVGAFifoCmdEscape body;

0 commit comments

Comments
 (0)