]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
mlxsw: core: Remove unnecessary asserts
authorVadim Pasternak <vadimp@nvidia.com>
Tue, 22 Feb 2022 17:16:59 +0000 (19:16 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 23 Feb 2022 12:38:17 +0000 (12:38 +0000)
commitaf9911c569d5d23abe3ed6c11f3c9ca8c76fa5f1
tree6d0249866b1800a11acd5d44ffb8cc94a19254ef
parent719fc0662cdc062be9e0b49f1788c50046ebfcf2
mlxsw: core: Remove unnecessary asserts

Remove unnecessary asserts for module index validation. Leave only one
that is actually necessary in mlxsw_env_pmpe_listener_func() where the
module index is directly read from the firmware event.

Signed-off-by: Vadim Pasternak <vadimp@nvidia.com>
Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/core_env.c