Fixed warning reported by kbuild test robot.
When reading current resource usage value, when no resources are
allocated, its possible that it can report a uninitialized value
for current resource usage.
This fix avoids it by initializing it to zero as no resource is
allocated.
Signed-off-by: Parav Pandit <[email protected]>
Signed-off-by: Tejun Heo <[email protected]>
} else {
if (rpool)
value = rpool->resources[i].usage;
+ else
+ value = 0;
}
if (value == S32_MAX)