Skip to contentSkip to conversation

Remove unusued edac_reset_delay_period function

PATCH New S.Çağlar Onur 1 participant 1 message Jul 21, 2007 EDAC-core

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Remove unusued edac_reset_delay_period function

Hi;

Following patch removes unused [1] edac_reset_delay_period function to silent

drivers/edac/edac_mc.c:334: warning: 'edac_reset_delay_period' defined but not used

compile warning.

[1]
caglar@zangetsu linux-2.6 $ grep edac_reset_delay_period * -r
drivers/edac/edac_mc.c: * edac_reset_delay_period
drivers/edac/edac_mc.c:static void edac_reset_delay_period(struct mem_ctl_info *mci, unsigned long value)

 drivers/edac/edac_mc.c |   17 -----------------
 1 files changed, 0 insertions(+), 17 deletions(-)
drivers/edac/edac_mc.c +0 -17
index 4471be3..c36a19a 100644
@@ -327,23 +327,6 @@ static void edac_mc_workq_teardown(struct mem_ctl_info *mci)
 	}
 }
 
-/*
- * edac_reset_delay_period
- */
-static void edac_reset_delay_period(struct mem_ctl_info *mci, unsigned long value)
-{
-	/* cancel the current workq request */
-	edac_mc_workq_teardown(mci);
-
-	/* lock the list of devices for the new setup */
-	mutex_lock(&mem_ctls_mutex);
-
-	/* restart the workq request, with new delay value */
-	edac_mc_workq_setup(mci, value);
-
-	mutex_unlock(&mem_ctls_mutex);
-}
-
 /* Return 0 on success, 1 on failure.
  * Before calling this function, caller must
  * assign a unique value to mci->mc_idx.

Cheers

Signature · 4 lines
S.Çağlar Onur <[email protected]>
http://cekirdek.pardus.org.tr/~caglar/

Linux is like living in a teepee. No Windows, no Gates and an Apache in house!