diff options
author | Jacob Keller <[email protected]> | 2022-11-28 12:36:39 -0800 |
---|---|---|
committer | Jakub Kicinski <[email protected]> | 2022-11-30 20:54:29 -0800 |
commit | 28e0c250f17ab3b6eb4dcee1a8208125bc77c61e (patch) | |
tree | f888563c3216e46a2eaf75ca5b99efe588399c1e /lib/mpi/mpi-add.c | |
parent | c1d8e3fb1a3bef6d1b24a9b1326e4ed11a1fbf0b (diff) |
devlink: use min_t to calculate data_size
The calculation for the data_size in the devlink_nl_read_snapshot_fill
function uses an if statement that is better expressed using the min_t
macro.
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