Skip to contentSkip to conversation

dm: bio_list macro renaming

PATCH In review Alasdair G Kergon 1 participant 1 message Oct 12, 2007 Device mapper

lore
Share & tools
lore

Alasdair G Kergon

author maintainer
#0 lore raw

PATCH 14/25 dm: bio_list macro renaming

From: Alasdair G Kergon <[email protected]>

Remove BIO_LIST and DEFINE_BIO_LIST macros that gain us nothing since contents are initialised to NULL.

---
 drivers/md/dm-bio-list.h |    5 -----
 drivers/md/dm-delay.c    |    2 +-
 2 files changed, 1 insertion(+), 6 deletions(-)
drivers/md/dm-bio-list.h +0 -5
Index: linux-2.6.23/drivers/md/dm-bio-list.h
===================================================================
@@ -21,11 +21,6 @@ static inline int bio_list_empty(const s
 	return bl->head == NULL;
 }
 
-#define BIO_LIST_INIT { .head = NULL, .tail = NULL }
-
-#define BIO_LIST(bl) \
-	struct bio_list bl = BIO_LIST_INIT
-
 static inline void bio_list_init(struct bio_list *bl)
 {
 	bl->head = bl->tail = NULL;
drivers/md/dm-delay.c +1 -1
Index: linux-2.6.23/drivers/md/dm-delay.c
===================================================================
@@ -83,7 +83,7 @@ static struct bio *flush_delayed_bios(st
 	struct dm_delay_info *delayed, *next;
 	unsigned long next_expires = 0;
 	int start_timer = 0;
-	BIO_LIST(flush_bios);
+	struct bio_list flush_bios = { };
 
 	mutex_lock(&delayed_bios_lock);
 	list_for_each_entry_safe(delayed, next, &dc->delayed_bios, list) {