iops = &obj->do_index_ops->dio_it;
it = iops->init(env, obj, BYPASS_CAPA);
- if (it != NULL) {
+ if (!IS_ERR(it)) {
result = iops->get(env, it, (const void *)"");
if (result > 0) {
int i;
iops->put(env, it);
iops->fini(env, it);
} else
- result = -ENOMEM;
+ result = PTR_ERR(it);
RETURN(result);
}