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

Commit 3bf35c2c authored by Viswanadha Raju Thotakura's avatar Viswanadha Raju Thotakura
Browse files

msm: camera: Correct the NULL check



Add NULL check for input argument.

Change-Id: I05daabd41d2650d5c09fea47b950c935064dac69
Signed-off-by: default avatarViswanadha Raju Thotakura <viswanad@codeaurora.org>
parent f918ea46
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -82,7 +82,7 @@ int32_t cam_sensor_handle_delay(
		(struct cam_cmd_unconditional_wait *) *cmd_buf;
	struct i2c_settings_list *i2c_list = NULL;

	if (i2c_list == NULL) {
	if (list_ptr == NULL) {
		CAM_ERR(CAM_SENSOR, "Invalid list ptr");
		return -EINVAL;
	}