diff options
author | Niklas Cassel <cassel@kernel.org> | 2024-03-20 12:31:52 +0100 |
---|---|---|
committer | Krzysztof Wilczyński <kwilczynski@kernel.org> | 2024-04-10 20:02:04 +0200 |
commit | 597ac0fa37b86833203c6c73ecbaa72ccc3781bd (patch) | |
tree | b5f1d719fbd43d9c3c13f71880f51d07b185a21d /net/switchdev | |
parent | PCI: endpoint: pci-epf-test: Simplify pci_epf_test_set_bar() loop (diff) | |
download | linux-597ac0fa37b86833203c6c73ecbaa72ccc3781bd.tar.xz linux-597ac0fa37b86833203c6c73ecbaa72ccc3781bd.zip |
PCI: endpoint: pci-epf-test: Clean up pci_epf_test_unbind()
Clean up pci_epf_test_unbind() by using a continue if we did not allocate
memory for the BAR index. This reduces the indentation level by one.
This makes pci_epf_test_unbind() more similar to pci_epf_test_set_bar().
Link: https://lore.kernel.org/linux-pci/20240320113157.322695-6-cassel@kernel.org
Signed-off-by: Niklas Cassel <cassel@kernel.org>
Signed-off-by: Krzysztof Wilczyński <kwilczynski@kernel.org>
Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Diffstat (limited to 'net/switchdev')
0 files changed, 0 insertions, 0 deletions