From 6cf552635545b90dc1e3439aaebda67a5008c798 Mon Sep 17 00:00:00 2001 From: Colin Ian King Date: Thu, 9 Aug 2018 11:44:32 +0100 Subject: [PATCH] staging: gasket: apex: remove unused array cm_mappable_regions Array cm_mappable_regions is defined but is never used hence it is redundant and can be removed. Cleans up clang warning: warning: 'cm_mappable_regions' defined but not used [-Wunused-const-variable=] Signed-off-by: Colin Ian King Signed-off-by: Greg Kroah-Hartman --- apex_driver.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/apex_driver.c b/apex_driver.c index 9aa8408..617841f 100644 --- a/apex_driver.c +++ b/apex_driver.c @@ -138,9 +138,6 @@ static const struct gasket_mappable_region mappable_regions[NUM_REGIONS] = { { 0x48000, 0x1000 }, }; -static const struct gasket_mappable_region cm_mappable_regions[1] = { { 0x0, - APEX_CH_MEM_BYTES } }; - /* Gasket device interrupts enums must be dense (i.e., no empty slots). */ enum apex_interrupt { APEX_INTERRUPT_INSTR_QUEUE = 0,