]> git.baikalelectronics.ru Git - kernel.git/commit
devlink: remove pointless data_len arg from region snapshot create
authorJiri Pirko <jiri@mellanox.com>
Fri, 9 Aug 2019 13:27:15 +0000 (15:27 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 9 Aug 2019 18:21:46 +0000 (11:21 -0700)
commit4841fb372dd23e9326b2f0af178ae8b7e92a8111
tree948b6c029ef289483692f49889b0d4da7df44677
parent6003b17502388c61cf9e86be341f09f2fafcdc33
devlink: remove pointless data_len arg from region snapshot create

The size of the snapshot has to be the same as the size of the region,
therefore no need to pass it again during snapshot creation. Remove the
arg and use region->size instead.

Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/crdump.c
include/net/devlink.h
net/core/devlink.c