msm: camera: common: memset usage optimization
Remove unnecessary memsets of the structure variables whose fields are assigned prior to their usage or they are dynamically allocated with calls that set the memory to 0. This memset usage optimization is to improve performance. CRs-Fixed: 3228092 Change-Id: Iec68c6d072863627959ce603cff28afd26a1c408 Signed-off-by: Sokchetra Eung <quic_eung@quicinc.com>
此提交包含在:

提交者
Camera Software Integration

父節點
996c88bbaf
當前提交
d2a1f0c968
@@ -576,8 +576,6 @@ void hfi_send_system_cmd(uint32_t type, uint64_t data, uint32_t size)
|
||||
case HFI_CMD_SYS_INIT: {
|
||||
struct hfi_cmd_sys_init init;
|
||||
|
||||
memset(&init, 0, sizeof(init));
|
||||
|
||||
init.size = sizeof(struct hfi_cmd_sys_init);
|
||||
init.pkt_type = type;
|
||||
hfi_write_cmd(&init);
|
||||
|
新增問題並參考
封鎖使用者