Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fc89db4b authored by Akinobu Mita's avatar Akinobu Mita Committed by Linus Torvalds
Browse files

s390/char: use for_each_clear_bit()



Use for_each_clear_bit() to iterate over all the cleared bit in a
memory region.

Signed-off-by: default avatarAkinobu Mita <akinobu.mita@gmail.com>
Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
Cc: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent c527b414
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -441,8 +441,7 @@ static int sclp_mem_notifier(struct notifier_block *nb,
	start = arg->start_pfn << PAGE_SHIFT;
	size = arg->nr_pages << PAGE_SHIFT;
	mutex_lock(&sclp_mem_mutex);
	for (id = 0; id <= sclp_max_storage_id; id++)
		if (!test_bit(id, sclp_storage_ids))
	for_each_clear_bit(id, sclp_storage_ids, sclp_max_storage_id + 1)
		sclp_attach_storage(id);
	switch (action) {
	case MEM_ONLINE: