diff options
author | Aya Levin | 2019-11-12 14:07:51 +0200 |
---|---|---|
committer | David S. Miller | 2019-11-12 11:25:44 -0800 |
commit | 8fdcd8fb21c054217b5ca5cb627a9a726dba630f (patch) | |
tree | 40f01197f632ab00e6de58d50200290f563b0025 /drivers/net/netdevsim | |
parent | d4e82cf4df300368e8d271a2caf14611a5e176a6 (diff) |
netdevsim: Update dummy reporter's devlink binary interface
Update dummy reporter's output to use updated devlink interface of
binary fmsg pair.
Signed-off-by: Aya Levin <ayal@mellanox.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/netdevsim')
-rw-r--r-- | drivers/net/netdevsim/health.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/drivers/net/netdevsim/health.c b/drivers/net/netdevsim/health.c index 2716235a0336..9aa637d162eb 100644 --- a/drivers/net/netdevsim/health.c +++ b/drivers/net/netdevsim/health.c @@ -82,20 +82,14 @@ static int nsim_dev_dummy_fmsg_put(struct devlink_fmsg *fmsg, u32 binary_len) if (err) return err; - err = devlink_fmsg_arr_pair_nest_start(fmsg, "test_binary"); - if (err) - return err; binary = kmalloc(binary_len, GFP_KERNEL); if (!binary) return -ENOMEM; get_random_bytes(binary, binary_len); - err = devlink_fmsg_binary_put(fmsg, binary, binary_len); + err = devlink_fmsg_binary_pair_put(fmsg, "test_binary", binary, binary_len); kfree(binary); if (err) return err; - err = devlink_fmsg_arr_pair_nest_end(fmsg); - if (err) - return err; err = devlink_fmsg_pair_nest_start(fmsg, "test_nest"); if (err) |