[PATCH] drm: gma500: psb_irq: Remove unused function
Rickard Strandqvist
rickard_strandqvist at spectrumdigital.se
Sun Jan 11 08:53:35 PST 2015
Remove the function mid_pipe_vsync() that is not used anywhere.
This was partially found by using a static code analysis program called cppcheck.
Signed-off-by: Rickard Strandqvist <rickard_strandqvist at spectrumdigital.se>
---
drivers/gpu/drm/gma500/psb_irq.c | 12 ------------
1 file changed, 12 deletions(-)
diff --git a/drivers/gpu/drm/gma500/psb_irq.c b/drivers/gpu/drm/gma500/psb_irq.c
index 624eb36..dcfd0a7 100644
--- a/drivers/gpu/drm/gma500/psb_irq.c
+++ b/drivers/gpu/drm/gma500/psb_irq.c
@@ -59,18 +59,6 @@ mid_pipe_event(int pipe)
}
static inline u32
-mid_pipe_vsync(int pipe)
-{
- if (pipe == 0)
- return _PSB_VSYNC_PIPEA_FLAG;
- if (pipe == 1)
- return _PSB_VSYNC_PIPEB_FLAG;
- if (pipe == 2)
- return _MDFLD_PIPEC_VBLANK_FLAG;
- BUG();
-}
-
-static inline u32
mid_pipeconf(int pipe)
{
if (pipe == 0)
--
1.7.10.4
More information about the dri-devel
mailing list