Skip to content

Commit

Permalink
event/dlb2: remove superfluous memcpy
Browse files Browse the repository at this point in the history
[ upstream commit c1b086d2abdb7773700b4d216f323bd9278ace7a ]

Copying with the same src and dst address has no effect; removed to
avoid compiler warning with decorated rte_memcpy.

Fixes: e7c9971 ("event/dlb2: add probe-time hardware init")

Signed-off-by: Morten Brørup <mb@smartsharesystems.com>
Acked-by: Stephen Hemminger <stephen@networkplumber.org>
Acked-by: Abdullah Sevincer <abdullah.sevincer@intel.com>
  • Loading branch information
MortenBroerup authored and bluca committed Mar 13, 2024
1 parent 9507b46 commit ede7aa1
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions drivers/event/dlb2/dlb2.c
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,6 @@ static int
dlb2_hw_query_resources(struct dlb2_eventdev *dlb2)
{
struct dlb2_hw_dev *handle = &dlb2->qm_instance;
struct dlb2_hw_resource_info *dlb2_info = &handle->info;
int num_ldb_ports;
int ret;

Expand Down Expand Up @@ -278,8 +277,6 @@ dlb2_hw_query_resources(struct dlb2_eventdev *dlb2)
handle->info.hw_rsrc_max.reorder_window_size =
dlb2->hw_rsrc_query_results.num_hist_list_entries;

rte_memcpy(dlb2_info, &handle->info.hw_rsrc_max, sizeof(*dlb2_info));

return 0;
}

Expand Down

0 comments on commit ede7aa1

Please sign in to comment.