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:
parent
ae2f6cb5ad
commit
e2f573259f
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
|
|
Loading…
Add table
Reference in a new issue