Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e2f57325 authored by Samyukta Mogily's avatar Samyukta Mogily Committed by Gerrit - the friendly Code Review server
Browse files

msm: camera: Changing return condition after NULL check



If return is inside the if condition, rc value is returned
only for that case. Hence shifting the return rc statement
outside the if loop, to return the value of rc for all cases.

Change-Id: I2f96cd0d301f580c0e7019746bade4e125661a36
CRs-Fixed: 1076948
Signed-off-by: default avatarSamyukta Mogily <smogily@codeaurora.org>
parent ae2f6cb5
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1428,8 +1428,8 @@ static int32_t msm_sensor_driver_i2c_probe(struct i2c_client *client,
				rc);
			goto FREE_S_CTRL;
		}
		return rc;
	}
	return rc;
FREE_S_CTRL:
	kfree(s_ctrl);
	return rc;