media: s5p-mfc: drop unused static s5p_mfc_cmds
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Sun, 24 Dec 2023 15:44:00 +0000 (16:44 +0100)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>
Mon, 22 Jan 2024 11:16:43 +0000 (12:16 +0100)
File-scope static variable "s5p_mfc_cmds" is not read after assignment,
thus it can be dropped entirely.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: Aakarsh Jain <aakarsh.jain@samsung.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
drivers/media/platform/samsung/s5p-mfc/s5p_mfc_cmd.c

index 774c573dc075b4e386ac85aab865ef06ea563ac0..196d8c99647b283ec7685e76263522e8db91f96b 100644 (file)
 #include "s5p_mfc_cmd_v5.h"
 #include "s5p_mfc_cmd_v6.h"
 
-static struct s5p_mfc_hw_cmds *s5p_mfc_cmds;
-
 void s5p_mfc_init_hw_cmds(struct s5p_mfc_dev *dev)
 {
        if (IS_MFCV6_PLUS(dev))
-               s5p_mfc_cmds = s5p_mfc_init_hw_cmds_v6();
+               dev->mfc_cmds = s5p_mfc_init_hw_cmds_v6();
        else
-               s5p_mfc_cmds = s5p_mfc_init_hw_cmds_v5();
-
-       dev->mfc_cmds = s5p_mfc_cmds;
+               dev->mfc_cmds = s5p_mfc_init_hw_cmds_v5();
 }