diff options
author | Jakub Kicinski <kuba@kernel.org> | 2020-05-13 19:28:22 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-05-15 02:36:25 +0200 |
commit | 5a46b062e28f57bffde767437fad3ab1d0cee2c7 (patch) | |
tree | e8d48306ad9c6b0b870b0bfde28c847f44cae1ce /drivers/net/ethernet/huawei | |
parent | Merge branch 'am65-cpsw-add-taprio-EST-offload-support' (diff) | |
download | linux-5a46b062e28f57bffde767437fad3ab1d0cee2c7.tar.xz linux-5a46b062e28f57bffde767437fad3ab1d0cee2c7.zip |
devlink: refactor end checks in devlink_nl_cmd_region_read_dumpit
Clean up after recent fixes, move address calculations
around and change the variable init, so that we can have
just one start_offset == end_offset check.
Make the check a little stricter to preserve the -EINVAL
error if requested start offset is larger than the region
itself.
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/huawei')
0 files changed, 0 insertions, 0 deletions