Coverity fixes
Initializing counter 'l' to 0 in 'r_next', which is
incremented to keep track of the resource position during
resource tree traversal.
Coverit ID 13503
Bug
200083369
Change-Id: Iea3d1390686b4c418a9bf40571921dbd9ca8d2fa
Signed-off-by: Pavitrakumar <pavitrak@nvidia.com>
Reviewed-on: http://git-master/r/759698
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sandeep Trasi <strasi@nvidia.com>
{
struct resource *p = &iomem_resource;
int err = 0;
- loff_t l;
+ loff_t l = 0;
read_lock(&resource_lock);
for (p = p->child; p ; p = r_next(NULL, p, &l)) {
{
struct resource *p = &iomem_resource;
int err = 0;
- loff_t l;
+ loff_t l = 0;
int size = PAGE_SIZE;
if (!strict_iomem_checks)