msm: camera: common: Memory leak and unused variable fixes
Some dead code was removed and a memory leak issue was resolved This solves issues related to VA_UNUSED.GEN and MLK.MIGHT. CRs-Fixed: 3394193 Change-Id: I387587a3e359df9ad44a15e3e3f58b3422c81ad9 Signed-off-by: Atiya Kailany <quic_akailany@quicinc.com>
This commit is contained in:

committed by
Camera Software Integration

parent
ef9248717e
commit
faad1003f2
@@ -648,7 +648,6 @@ void cam_eeprom_spi_driver_remove(struct spi_device *sdev)
|
||||
struct v4l2_subdev *sd = spi_get_drvdata(sdev);
|
||||
struct cam_eeprom_ctrl_t *e_ctrl;
|
||||
struct cam_eeprom_soc_private *soc_private;
|
||||
struct cam_hw_soc_info *soc_info;
|
||||
|
||||
if (!sd) {
|
||||
CAM_ERR(CAM_EEPROM, "Subdevice is NULL");
|
||||
@@ -661,7 +660,6 @@ void cam_eeprom_spi_driver_remove(struct spi_device *sdev)
|
||||
return;
|
||||
}
|
||||
|
||||
soc_info = &e_ctrl->soc_info;
|
||||
mutex_lock(&(e_ctrl->eeprom_mutex));
|
||||
cam_eeprom_shutdown(e_ctrl);
|
||||
mutex_unlock(&(e_ctrl->eeprom_mutex));
|
||||
|
Reference in New Issue
Block a user