Skip to contentSkip to conversation

#if 0 edac_device_find()

PATCH New Adrian Bunk 1 participant 1 message Mar 30, 2008 EDAC-core

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 #if 0 edac_device_find()

This patch #if 0's the unused edac_device_find().

---

 drivers/edac/edac_device.c |    2 ++
 1 file changed, 2 insertions(+)

25f2309d2f8850bb0f12bd73f651df1b2ee60aa4 diff --git a/drivers/edac/edac_device.c b/drivers/edac/edac_device.c index b9552bc..f45a8cd 100644

drivers/edac/edac_device.c +2 -0
@@ -375,6 +375,7 @@ static void del_edac_device_from_global_list(struct edac_device_ctl_info
 	wait_for_completion(&edac_device->removal_complete);
 }
 
+#if 0
 /**
  * edac_device_find
  *	Search for a edac_device_ctl_info structure whose index is 'idx'.
@@ -405,6 +406,7 @@ struct edac_device_ctl_info *edac_device_find(int idx)
 	return NULL;
 }
 EXPORT_SYMBOL_GPL(edac_device_find);
+#endif  /*  0  */
 
 /*
  * edac_device_workq_function