OSDN Git Service

media: atomisp: get rid of some weird warn-suppress logic
authorMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Mon, 15 Nov 2021 18:43:22 +0000 (18:43 +0000)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Tue, 16 Nov 2021 14:37:10 +0000 (14:37 +0000)
There are some dead code meant to suppress "C_RUN" warnings.

Drop it from sh_css.c, as it doesn't make much sense.

Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/staging/media/atomisp/pci/sh_css.c

index 5d022bb..6970cf8 100644 (file)
@@ -8198,15 +8198,6 @@ sh_css_init_host_sp_control_vars(void)
 #endif
        HIVE_ADDR_host_sp_com = fw->info.sp.host_sp_com;
 
-       (void)HIVE_ADDR_ia_css_ispctrl_sp_isp_started; /* Suppres warnings in CRUN */
-
-       (void)HIVE_ADDR_sp_sleep_mode;
-       (void)HIVE_ADDR_ia_css_dmaproxy_sp_invalidate_tlb;
-#ifndef ISP2401
-       (void)HIVE_ADDR_sp_stop_copy_preview;
-#endif
-       (void)HIVE_ADDR_host_sp_com;
-
        sp_dmem_store_uint32(SP0_ID,
                             (unsigned int)sp_address_of(ia_css_ispctrl_sp_isp_started),
                             (uint32_t)(0));