- /* previous cookie found -- advance to the
- * next device, if possible */
-
- if (++i >= specs[type].max_dev) {
- /* out of range, no more to enum */
- di->cookie = NULL;
- break;
- }
-
- di->cookie = (void *)blk_get_dev(
- specs[type].name, i);
- if (di->cookie == NULL)
- return 0;
- else
- found = 1;
-
- /* provide hint if there are more devices in
- * this group to enumerate */
- if ((i + 1) < specs[type].max_dev)
- *more = 1;
-