]> git.baikalelectronics.ru Git - kernel.git/commit
octeontx2-af: Remove unnecessary devm_kfree
authorSunil Goutham <sgoutham@marvell.com>
Thu, 22 Jul 2021 12:45:51 +0000 (18:15 +0530)
committerDavid S. Miller <davem@davemloft.net>
Fri, 23 Jul 2021 15:01:53 +0000 (16:01 +0100)
commit3c40c95d6945dfd8b7f3ce883247c734c2926b84
tree6d807094fcc5f34dafc1e224566cb106cd3c1e8c
parent9ca07c9833546bd153d0f1f6a2e4b54a1e507ea9
octeontx2-af: Remove unnecessary devm_kfree

Remove devm_kfree of memory where VLAN entry to RVU PF mapping
info is saved. This will be freed anyway at driver exit.
Having this could result in warning from devm_kfree() if
the memory is not allocated due to errors in rvu_nix_block_init()
before nix_setup_txvlan().

Fixes: bc253f7446ec ("octeontx2-af: Modify nix_vtag_cfg mailbox to support TX VTAG entries")
Signed-off-by: Sunil Goutham <sgoutham@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c