disp: msm: Address static analysis issues
Avoid various possible nullptr dereferences. Addresses various issues highlighted by static analysis. Change-Id: I36d34d610b37bf2799a7e34cd1de8b909b5c0ae4 Signed-off-by: Nisarg Bhavsar <quic_bhavsar@quicinc.com>
This commit is contained in:

committed by
Amine Najahi

parent
609f084c8a
commit
75aedb1c53
@@ -1091,6 +1091,11 @@ static void _sde_encoder_phys_wb_setup_sys_cache(struct sde_encoder_phys *phys_e
|
||||
return;
|
||||
}
|
||||
|
||||
if (!hw_wb || !hw_wb->ops.setup_sys_cache) {
|
||||
SDE_DEBUG("unsupported ops: setup_sys_cache WB %d\n", WBID(wb_enc));
|
||||
return;
|
||||
}
|
||||
|
||||
/*
|
||||
* - use LLCC_DISP for cwb static display
|
||||
* - use LLCC_DISP_1 for cwb static display read path only
|
||||
@@ -1113,11 +1118,6 @@ static void _sde_encoder_phys_wb_setup_sys_cache(struct sde_encoder_phys *phys_e
|
||||
return;
|
||||
}
|
||||
|
||||
if (!hw_wb || !hw_wb->ops.setup_sys_cache) {
|
||||
SDE_DEBUG("unsupported ops: setup_sys_cache WB %d\n", WBID(wb_enc));
|
||||
return;
|
||||
}
|
||||
|
||||
cache_enable = sde_connector_get_property(state, CONNECTOR_PROP_CACHE_STATE);
|
||||
|
||||
if (!cfg->wr_en && !cache_enable)
|
||||
|
Reference in New Issue
Block a user