Skip to content

Commit

Permalink
msm: Camera: Return proper value for msm_camera_qup_i2c_txdata().
Browse files Browse the repository at this point in the history
msm_camera_qup_i2c_txdata() is not returning proper value.
Due to which session tear down is not happening properly
in case of i2c failure.

CRs-Fixed: 640328
Change-Id: I25cfa10302aeab020ba1710adeed5b860fb7cb3b
Signed-off-by: Vivek Veenam <vveenam@codeaurora.org>
  • Loading branch information
Vivek Veenam committed Apr 8, 2014
1 parent 93980fd commit 8c0b0d0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ static int32_t msm_camera_qup_i2c_txdata(
rc = i2c_transfer(dev_client->client->adapter, msg, 1);
if (rc < 0)
S_I2C_DBG("msm_camera_qup_i2c_txdata faild 0x%x\n", saddr);
return 0;
return rc;
}

int32_t msm_camera_qup_i2c_read(struct msm_camera_i2c_client *client,
Expand Down

0 comments on commit 8c0b0d0

Please sign in to comment.