msm: camera: cdm: Remove redundant if condition in cdm util

Removes if statement condition that would always evaluate
to false.

CRs-Fixed: 3300441
Change-Id: Ia5e68cdcf28dedd8e38c06feb475340fec7d4d9e
Signed-off-by: Joshua Florez <quic_jflorez@quicinc.com>
Bu işleme şunda yer alıyor:
Joshua Florez
2022-09-27 11:29:20 -07:00
işlemeyi yapan: “Savita
ebeveyn 80f048e0b7
işleme 380923cd39

Dosyayı Görüntüle

@@ -505,8 +505,7 @@ static int cam_cdm_util_reg_cont_write(void __iomem *base_addr,
}
reg_cont = (struct cdm_regcontinuous_cmd *)cmd_buf;
if ((!reg_cont->count) || (reg_cont->count > 0x10000) ||
(((reg_cont->count * sizeof(uint32_t)) +
if ((!reg_cont->count) || (((reg_cont->count * sizeof(uint32_t)) +
cam_cdm_get_cmd_header_size(CAM_CDM_CMD_REG_CONT)) >
cmd_buf_size)) {
CAM_ERR(CAM_CDM, "buffer size %d is not sufficient for count%d",
@@ -536,8 +535,7 @@ static int cam_cdm_util_reg_random_write(void __iomem *base_addr,
}
reg_random = (struct cdm_regrandom_cmd *) cmd_buf;
if ((!reg_random->count) || (reg_random->count > 0x10000) ||
(((reg_random->count * (sizeof(uint32_t) * 2)) +
if ((!reg_random->count) || (((reg_random->count * (sizeof(uint32_t) * 2)) +
cam_cdm_get_cmd_header_size(CAM_CDM_CMD_REG_RANDOM)) >
cmd_buf_size)) {
CAM_ERR(CAM_CDM, "invalid reg_count %d cmd_buf_size %d",