mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-04 00:06:36 +00:00
qed: devlink health: use retained error fmsg API
Drop unneeded error checking. devlink_fmsg_*() family of functions is now retaining errors, so there is no need to check for them after each call. Reviewed-by: Jiri Pirko <jiri@nvidia.com> Signed-off-by: Przemek Kitszel <przemyslaw.kitszel@intel.com> Reviewed-by: Simon Horman <horms@kernel.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
d17f98bf7c
commit
18256cb2d4
1 changed files with 3 additions and 3 deletions
|
@ -66,12 +66,12 @@ qed_fw_fatal_reporter_dump(struct devlink_health_reporter *reporter,
|
|||
return err;
|
||||
}
|
||||
|
||||
err = devlink_fmsg_binary_pair_put(fmsg, "dump_data",
|
||||
p_dbg_data_buf, dbg_data_buf_size);
|
||||
devlink_fmsg_binary_pair_put(fmsg, "dump_data", p_dbg_data_buf,
|
||||
dbg_data_buf_size);
|
||||
|
||||
vfree(p_dbg_data_buf);
|
||||
|
||||
return err;
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int
|
||||
|
|
Loading…
Add table
Reference in a new issue