msm: camera: common: Removing dead code
Removing some unused variables after assignment CRs-Fixed: 3394193 Change-Id: Ifb554da9f974036a19670e8c247ec5ae424c6091 Signed-off-by: Atiya Kailany <quic_akailany@quicinc.com>
This commit is contained in:

committed by
Camera Software Integration

vanhempi
150d83d873
commit
51b81257c0
@@ -3287,7 +3287,6 @@ static void cam_cpas_dump_monitor_array(
|
||||
entry = &cpas_core->monitor_entries[index];
|
||||
CAM_CONVERT_TIMESTAMP_FORMAT(entry->timestamp, hrs, min, sec, ms);
|
||||
log_buf[0] = '\0';
|
||||
len = 0;
|
||||
|
||||
CAM_INFO(CAM_CPAS,
|
||||
"**** %llu:%llu:%llu.%llu : Index[%d] Identifier[%s][%d] camnoc=sw : %ld, hw clients [%ld %ld][%ld %ld][%ld %ld], ahb=%d",
|
||||
|
@@ -7507,7 +7507,7 @@ start_only:
|
||||
for (i = 0; i < ctx->num_acq_sfe_out; i++) {
|
||||
hw_mgr_res = &ctx->res_list_sfe_out[i];
|
||||
rc = cam_ife_hw_mgr_start_hw_res(
|
||||
&ctx->res_list_sfe_out[i], ctx);
|
||||
hw_mgr_res, ctx);
|
||||
if (rc) {
|
||||
CAM_ERR(CAM_ISP, "Can not start SFE OUT (%d), ctx_idx: %u",
|
||||
i, ctx->ctx_index);
|
||||
|
@@ -1925,7 +1925,6 @@ static int cam_ife_csid_ver2_ipp_bottom_half(
|
||||
struct cam_isp_resource_node *res;
|
||||
struct cam_ife_csid_ver2_hw *csid_hw = NULL;
|
||||
struct cam_isp_hw_event_info evt_info;
|
||||
struct cam_hw_soc_info *soc_info;
|
||||
struct cam_hw_info *hw_info;
|
||||
struct cam_ife_csid_ver2_path_cfg *path_cfg;
|
||||
uint32_t irq_status_ipp;
|
||||
@@ -1946,7 +1945,6 @@ static int cam_ife_csid_ver2_ipp_bottom_half(
|
||||
hw_info = (struct cam_hw_info *)res->hw_intf->hw_priv;
|
||||
csid_hw = (struct cam_ife_csid_ver2_hw *)hw_info->core_info;
|
||||
csid_reg = csid_hw->core_info->csid_reg;
|
||||
soc_info = &csid_hw->hw_info->soc_info;
|
||||
path_cfg = (struct cam_ife_csid_ver2_path_cfg *)res->res_priv;
|
||||
|
||||
if (!path_cfg || (path_cfg->irq_reg_idx >= CAM_IFE_CSID_IRQ_REG_MAX)) {
|
||||
@@ -2047,7 +2045,6 @@ static int cam_ife_csid_ver2_ppp_bottom_half(
|
||||
struct cam_ife_csid_ver2_reg_info *csid_reg;
|
||||
struct cam_isp_resource_node *res;
|
||||
struct cam_ife_csid_ver2_hw *csid_hw = NULL;
|
||||
struct cam_hw_soc_info *soc_info;
|
||||
struct cam_hw_info *hw_info;
|
||||
uint32_t irq_status_ppp;
|
||||
uint32_t err_mask;
|
||||
@@ -2065,7 +2062,6 @@ static int cam_ife_csid_ver2_ppp_bottom_half(
|
||||
res = handler_priv;
|
||||
hw_info = (struct cam_hw_info *)res->hw_intf->hw_priv;
|
||||
csid_hw = (struct cam_ife_csid_ver2_hw *)hw_info->core_info;
|
||||
soc_info = &csid_hw->hw_info->soc_info;
|
||||
path_cfg = (struct cam_ife_csid_ver2_path_cfg *)res->res_priv;
|
||||
|
||||
if (!path_cfg || (path_cfg->irq_reg_idx >= CAM_IFE_CSID_IRQ_REG_MAX)) {
|
||||
@@ -2130,7 +2126,6 @@ static int cam_ife_csid_ver2_rdi_bottom_half(
|
||||
struct cam_ife_csid_ver2_path_cfg *path_cfg;
|
||||
struct cam_isp_resource_node *res;
|
||||
const struct cam_ife_csid_ver2_path_reg_info *rdi_reg;
|
||||
struct cam_hw_soc_info *soc_info;
|
||||
struct cam_hw_info *hw_info;
|
||||
uint32_t irq_status_rdi;
|
||||
uint32_t err_mask;
|
||||
@@ -2164,7 +2159,6 @@ static int cam_ife_csid_ver2_rdi_bottom_half(
|
||||
|
||||
csid_reg = (struct cam_ife_csid_ver2_reg_info *)
|
||||
csid_hw->core_info->csid_reg;
|
||||
soc_info = &csid_hw->hw_info->soc_info;
|
||||
|
||||
irq_status_rdi = payload->irq_reg_val;
|
||||
rdi_reg = csid_reg->path_reg[res->res_id];
|
||||
|
@@ -1789,7 +1789,6 @@ int cam_mem_mgr_request_mem(struct cam_mem_mgr_request_desc *inp,
|
||||
uint32_t mem_handle;
|
||||
int32_t idx;
|
||||
int32_t smmu_hdl = 0;
|
||||
int32_t num_hdl = 0;
|
||||
unsigned long i_ino = 0;
|
||||
|
||||
enum cam_smmu_region_id region = CAM_SMMU_REGION_SHARED;
|
||||
@@ -1861,7 +1860,6 @@ int cam_mem_mgr_request_mem(struct cam_mem_mgr_request_desc *inp,
|
||||
}
|
||||
|
||||
smmu_hdl = inp->smmu_hdl;
|
||||
num_hdl = 1;
|
||||
|
||||
idx = cam_mem_get_slot();
|
||||
if (idx < 0) {
|
||||
@@ -1960,7 +1958,6 @@ int cam_mem_mgr_reserve_memory_region(struct cam_mem_mgr_request_desc *inp,
|
||||
uint32_t mem_handle;
|
||||
int32_t idx;
|
||||
int32_t smmu_hdl = 0;
|
||||
int32_t num_hdl = 0;
|
||||
uintptr_t kvaddr = 0;
|
||||
unsigned long i_ino = 0;
|
||||
|
||||
@@ -2014,7 +2011,6 @@ int cam_mem_mgr_reserve_memory_region(struct cam_mem_mgr_request_desc *inp,
|
||||
}
|
||||
|
||||
smmu_hdl = inp->smmu_hdl;
|
||||
num_hdl = 1;
|
||||
|
||||
idx = cam_mem_get_slot();
|
||||
if (idx < 0) {
|
||||
|
@@ -742,7 +742,6 @@ int32_t cam_handle_cmd_buffers_for_probe(void *cmd_buf,
|
||||
CAM_ERR(CAM_SENSOR, "Updating the slave Info");
|
||||
return rc;
|
||||
}
|
||||
cmd_buf = probe_info;
|
||||
}
|
||||
break;
|
||||
case 1: {
|
||||
|
@@ -263,7 +263,7 @@ static inline int32_t cam_qup_i2c_write_optimized(struct camera_io_master *clien
|
||||
{
|
||||
int32_t rc = 0;
|
||||
uint8_t len = 0;
|
||||
struct cam_sensor_i2c_reg_array *reg_setting_previous;
|
||||
struct cam_sensor_i2c_reg_array *reg_setting_previous = NULL;
|
||||
uint32_t offset = 0;
|
||||
struct cam_sensor_i2c_reg_array *reg_setting;
|
||||
enum camera_sensor_i2c_type addr_type;
|
||||
@@ -276,7 +276,6 @@ static inline int32_t cam_qup_i2c_write_optimized(struct camera_io_master *clien
|
||||
return -EINVAL;
|
||||
|
||||
reg_setting = write_setting->reg_setting;
|
||||
reg_setting_previous = NULL;
|
||||
addr_type = write_setting->addr_type;
|
||||
data_type = write_setting->data_type;
|
||||
|
||||
|
@@ -263,7 +263,7 @@ static inline int32_t cam_qup_i3c_write_optimized(struct camera_io_master *clien
|
||||
{
|
||||
int32_t rc = 0;
|
||||
uint8_t len = 0;
|
||||
struct cam_sensor_i2c_reg_array *reg_setting_previous;
|
||||
struct cam_sensor_i2c_reg_array *reg_setting_previous = NULL;
|
||||
uint32_t offset = 0;
|
||||
struct cam_sensor_i2c_reg_array *reg_setting;
|
||||
enum camera_sensor_i2c_type addr_type;
|
||||
@@ -276,7 +276,6 @@ static inline int32_t cam_qup_i3c_write_optimized(struct camera_io_master *clien
|
||||
return -EINVAL;
|
||||
|
||||
reg_setting = write_setting->reg_setting;
|
||||
reg_setting_previous = NULL;
|
||||
addr_type = write_setting->addr_type;
|
||||
data_type = write_setting->data_type;
|
||||
|
||||
|
Viittaa uudesa ongelmassa
Block a user