Skip to content

Commit 10cb393

Browse files
davejiangdjbw
authored andcommitted
cxl: Remove unnecessary type cast in cxl_qos_class_verify()
The passed in host bridge parameter for device_for_each_child() has unnecessary void * type cast. Remove the type cast. Suggested-by: Jonathan Cameron <[email protected]> Signed-off-by: Dave Jiang <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Jonathan Cameron <[email protected]> Signed-off-by: Dan Williams <[email protected]>
1 parent 00413c1 commit 10cb393

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/cxl/core/cdat.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -334,8 +334,7 @@ static int cxl_qos_class_verify(struct cxl_memdev *cxlmd)
334334

335335
/* Check to make sure that the device's host bridge is under a root decoder */
336336
rc = device_for_each_child(&root_port->dev,
337-
(void *)cxlmd->endpoint->host_bridge,
338-
match_cxlrd_hb);
337+
cxlmd->endpoint->host_bridge, match_cxlrd_hb);
339338
if (!rc) {
340339
reset_dpa_perf(&mds->ram_perf);
341340
reset_dpa_perf(&mds->pmem_perf);

0 commit comments

Comments
 (0)