diff options
author | 2020-10-12 05:10:53 -0400 | |
---|---|---|
committer | 2020-10-12 14:27:03 -0700 | |
commit | 7154917a12b20ea46b09097a22342bcdf6adac66 (patch) | |
tree | a942132a2f1e8366f333c07ccbfe6b4fd7d4edee /net/unix/af_unix.c | |
parent | bnxt_en: Add bnxt_hwrm_nvm_get_dev_info() to query NVM info. (diff) | |
download | wireguard-linux-7154917a12b20ea46b09097a22342bcdf6adac66.tar.xz wireguard-linux-7154917a12b20ea46b09097a22342bcdf6adac66.zip |
bnxt_en: Refactor bnxt_dl_info_get().
Add a new function bnxt_dl_info_put() to simplify the code, as there
are more stored firmware version fields to be added in the next patch.
Also, rename fw_ver variable name to ncsi_ver for better naming while
copying to devlink info_get cb.
v2:
Ensure active_pkg_name string is NULL terminated when copied to
devlink.
Return directly from the last call to bnxt_dl_info_put().
Reviewed-by: Pavan Chebbi <pavan.chebbi@broadcom.com>
Reviewed-by: Andy Gospodarek <gospo@broadcom.com>
Signed-off-by: Vasundhara Volam <vasundhara-v.volam@broadcom.com>
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Link: https://lore.kernel.org/r/1602493854-29283-9-git-send-email-michael.chan@broadcom.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions