[PATCH 14/15] media: s5p-mfc: drop useless static s5p_mfc_dev in s5p_mfc_pm.c
Krzysztof Kozlowski
krzysztof.kozlowski at linaro.org
Sun Dec 24 07:44:13 PST 2023
Pointer "struct s5p_mfc_dev" is stored in s5p_mfc_pm.c once and never
used again.
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski at linaro.org>
---
drivers/media/platform/samsung/s5p-mfc/s5p_mfc_pm.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/drivers/media/platform/samsung/s5p-mfc/s5p_mfc_pm.c b/drivers/media/platform/samsung/s5p-mfc/s5p_mfc_pm.c
index 29b141d4a7a7..ecb3065c33c9 100644
--- a/drivers/media/platform/samsung/s5p-mfc/s5p_mfc_pm.c
+++ b/drivers/media/platform/samsung/s5p-mfc/s5p_mfc_pm.c
@@ -15,15 +15,12 @@
#include "s5p_mfc_pm.h"
static struct s5p_mfc_pm *pm;
-static struct s5p_mfc_dev *p_dev;
int s5p_mfc_init_pm(struct s5p_mfc_dev *dev)
{
int i;
pm = &dev->pm;
- p_dev = dev;
-
pm->num_clocks = dev->variant->num_clocks;
pm->clk_names = dev->variant->clk_names;
pm->device = &dev->plat_dev->dev;
--
2.34.1
More information about the linux-arm-kernel
mailing list