From 10a3174397cec026e4698103202963a3bbc824fe Mon Sep 17 00:00:00 2001 From: "matthias@kaehlcke.net" Date: Sat, 31 May 2008 15:28:10 +0200 Subject: [PATCH] --- yaml --- r: 106406 b: refs/heads/master c: 856613c98c2f864994d5fb33a62b7a468f68ab9b h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/drivers/mtd/mtdcore.c | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/[refs] b/[refs] index c183ace5ea89..038d02eb7314 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 2606c79759e83fd8b1e45bc99b10e65a1dcf1602 +refs/heads/master: 856613c98c2f864994d5fb33a62b7a468f68ab9b diff --git a/trunk/drivers/mtd/mtdcore.c b/trunk/drivers/mtd/mtdcore.c index 4c102f123463..8c61035b968b 100644 --- a/trunk/drivers/mtd/mtdcore.c +++ b/trunk/drivers/mtd/mtdcore.c @@ -112,12 +112,11 @@ int del_mtd_device (struct mtd_info *mtd) mtd->index, mtd->name, mtd->usecount); ret = -EBUSY; } else { - struct list_head *this; + struct mtd_notifier *not; /* No need to get a refcount on the module containing the notifier, since we hold the mtd_table_mutex */ - list_for_each(this, &mtd_notifiers) { - struct mtd_notifier *not = list_entry(this, struct mtd_notifier, list); + list_for_each_entry(not, &mtd_notifiers, list) { not->remove(mtd); }