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)
commit3a5e523479c49b082b8ac291a1a9fbd035c06df5
tree948b6c029ef289483692f49889b0d4da7df44677
parent1a9914884db5138682032cf69f2d55739f236c80
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