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

Commit f8d4b598 authored by qctecmdr Service's avatar qctecmdr Service Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: vidc: Remove unnecessary checks in set property"

parents 233f602e e030a143
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -782,7 +782,7 @@ int create_pkt_cmd_session_set_property(
	pkt->num_properties = 1;
	pkt->size += size;
	pkt->rg_property_data[0] = ptype;
	if (size)
	if (size && pdata)
		memcpy(&pkt->rg_property_data[1], pdata, size);

	dprintk(VIDC_DBG, "Setting HAL Property = 0x%x\n", ptype);
+1 −1
Original line number Diff line number Diff line
@@ -2278,7 +2278,7 @@ static int venus_hfi_session_set_property(void *sess,
	struct venus_hfi_device *device;
	int rc = 0;

	if (!session || !session->device || !pdata) {
	if (!session || !session->device) {
		dprintk(VIDC_ERR, "Invalid Params\n");
		return -EINVAL;
	}