Skip to content

Commit a7ff7dc

Browse files
IoanaCiorneiLi Yang
authored andcommitted
soc: fsl: dpio: use an explicit NULL instead of 0
Use an explicit NULL pointer when calling qbman_swp_enqueue_multiple() instead of a plain integer. Without this fix, we get the following compile time error. drivers/soc/fsl/dpio/dpio-service.c:466:60: warning: Using plain integer as NULL pointer Fixes: 9d98809 ("soc: fsl: dpio: Adding QMAN multiple enqueue interface") Signed-off-by: Ioana Ciornei <[email protected]> Signed-off-by: Li Yang <[email protected]>
1 parent ea41191 commit a7ff7dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/soc/fsl/dpio/dpio-service.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ int dpaa2_io_service_enqueue_multiple_fq(struct dpaa2_io *d,
462462
qbman_eq_desc_set_no_orp(&ed, 0);
463463
qbman_eq_desc_set_fq(&ed, fqid);
464464

465-
return qbman_swp_enqueue_multiple(d->swp, &ed, fd, 0, nb);
465+
return qbman_swp_enqueue_multiple(d->swp, &ed, fd, NULL, nb);
466466
}
467467
EXPORT_SYMBOL(dpaa2_io_service_enqueue_multiple_fq);
468468

0 commit comments

Comments
 (0)