diff --git a/wmi/src/wmi_unified.c b/wmi/src/wmi_unified.c index e99e07eadfae..760c1e1470a6 100644 --- a/wmi/src/wmi_unified.c +++ b/wmi/src/wmi_unified.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2015-2020 The Linux Foundation. All rights reserved. + * Copyright (c) 2015-2021 The Linux Foundation. All rights reserved. * * Permission to use, copy, modify, and/or distribute this software for * any purpose with or without fee is hereby granted, provided that the @@ -2565,11 +2565,6 @@ static int __wmi_process_qmi_fw_event(void *wmi_cb_ctx, void *buf, int len) if (!evt_buf) return -ENOMEM; - /* - * Set the length of the buffer to match the allocation size. - */ - qdf_nbuf_set_pktlen(evt_buf, len); - qdf_mem_copy(qdf_nbuf_data(evt_buf), buf, len); evt_id = WMI_GET_FIELD(qdf_nbuf_data(evt_buf), WMI_CMD_HDR, COMMANDID); wmi_debug("Received WMI_EVT_ID: %d over qmi", evt_id);