struct lu_object *obj;
wait_queue_t wait;
- while (1) {
- if (conf != NULL && conf->loc_flags & LOC_F_NOWAIT) {
- obj = lu_object_find_try(env, dev, f, conf, NULL);
-
- return obj;
- }
+ if (conf != NULL && conf->loc_flags & LOC_F_NOWAIT)
+ return lu_object_find_try(env, dev, f, conf, NULL);
+ while (1) {
obj = lu_object_find_try(env, dev, f, conf, &wait);
if (obj != ERR_PTR(-EAGAIN))
return obj;