aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-add.c
diff options
context:
space:
mode:
authorJacob Keller <[email protected]>2022-11-28 12:36:41 -0800
committerJakub Kicinski <[email protected]>2022-11-30 20:54:30 -0800
commite004ea10599d1a8279e959c86e63fc9d0bf2032b (patch)
treec9aaf2933e64c82ae28d982105cf9844247d7c58 /lib/mpi/mpi-add.c
parent611fd12ce0fbc809d5e54febb1f39e93532c9deb (diff)
devlink: find snapshot in devlink_nl_cmd_region_read_dumpit
The snapshot pointer is obtained inside of the function devlink_nl_region_read_snapshot_fill. Simplify this function by locating the snapshot upfront in devlink_nl_cmd_region_read_dumpit instead. This aligns with how other netlink attributes are handled, and allows us to exit slightly earlier if an invalid snapshot ID is provided. It also allows us to pass the snapshot pointer directly to the devlink_nl_region_read_snapshot_fill, and remove the now unused attrs parameter. Signed-off-by: Jacob Keller <[email protected]> Acked-by: Jakub Kicinski <[email protected]> Reviewed-by: Jiri Pirko <[email protected]> Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-add.c')
0 files changed, 0 insertions, 0 deletions