Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ba15caff authored by Dikshita Agarwal's avatar Dikshita Agarwal
Browse files

msm-vidc: fix if check in setup_ucregion_memory_map_iris1 function



Currently video driver will try to write to SFR register even if
address is 0 due to incorrect if check, fix it by removing second
operand sid from if check.

Change-Id: Idb5af4af70dba658e8ee3e8b00ea7112e6ae2660
Signed-off-by: default avatarDikshita Agarwal <dikshita@codeaurora.org>
parent 04e5f917
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -28,7 +28,7 @@ void __setup_ucregion_memory_map_iris1(struct venus_hfi_device *device, u32 sid)
	__write_register(device, QTBL_ADDR,
			(u32)device->iface_q_table.align_device_addr, sid);
	__write_register(device, QTBL_INFO, 0x01, sid);
	if (device->sfr.align_device_addr, sid)
	if (device->sfr.align_device_addr)
		__write_register(device, SFR_ADDR,
				(u32)device->sfr.align_device_addr, sid);
	if (device->qdss.align_device_addr)