]> Pileus Git - ~andy/linux/blobdiff - drivers/s390/char/sclp_cmd.c
Merge tag 'split-asm_system_h-for-linus-20120328' of git://git.kernel.org/pub/scm...
[~andy/linux] / drivers / s390 / char / sclp_cmd.c
index 2e58f472f7f69a5a00321b13cf8e22455e6e40f1..231a1d85127b8778d8fdcac0c09662868201c739 100644 (file)
@@ -442,9 +442,8 @@ 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))
-                       sclp_attach_storage(id);
+       for_each_clear_bit(id, sclp_storage_ids, sclp_max_storage_id + 1)
+               sclp_attach_storage(id);
        switch (action) {
        case MEM_ONLINE:
        case MEM_GOING_OFFLINE: