mlxsw: reg: Allow to pass NULL pointer to mlxsw_reg_ralue_pack4/6()
authorJiri Pirko <jiri@nvidia.com>
Tue, 10 Nov 2020 09:48:53 +0000 (11:48 +0200)
committerJakub Kicinski <kuba@kernel.org>
Thu, 12 Nov 2020 23:55:20 +0000 (15:55 -0800)
commit1a7fcdf75d28b4b23479580f1d80c58bd3020053
tree84243823b356c0d914de6e62e2ff7ecf9a6d60ee
parent0c1d6b269457cb30abe457a279fef9c6e9259e0a
mlxsw: reg: Allow to pass NULL pointer to mlxsw_reg_ralue_pack4/6()

In preparation for the change that is going to be done in the next
patch, allow to pass NULL pointer to mlxsw_reg_ralue_pack4() and
mlxsw_reg_ralue_pack6() helpers.

Signed-off-by: Jiri Pirko <jiri@nvidia.com>
Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mellanox/mlxsw/reg.h