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: Samyukta Mogily <smogily@codeaurora.org>
This commit is contained in:
Samyukta Mogily 2016-10-12 18:13:50 +05:30 committed by Gerrit - the friendly Code Review server
parent ae2f6cb5ad
commit e2f573259f

View file

@ -1428,8 +1428,8 @@ static int32_t msm_sensor_driver_i2c_probe(struct i2c_client *client,
rc); rc);
goto FREE_S_CTRL; goto FREE_S_CTRL;
} }
return rc;
} }
return rc;
FREE_S_CTRL: FREE_S_CTRL:
kfree(s_ctrl); kfree(s_ctrl);
return rc; return rc;