From: Krzysztof Kanas Date: Mon, 8 Jul 2019 12:18:32 +0000 (+0200) Subject: common/octeontx2: cleanup void returns X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=6670c8cbfe2c768a9ec74218be7f0705e5771547;p=dpdk.git common/octeontx2: cleanup void returns mbox_unregister_vf_irq and mbox_unregister_pf_irq returns void value. mbox_unregister_irq also returns void. Clang with flags '-Wall -Wextra -pedantic' complains about: void function should not return void expression Signed-off-by: Krzysztof Kanas --- diff --git a/drivers/common/octeontx2/otx2_dev.c b/drivers/common/octeontx2/otx2_dev.c index 53a0c6efbc..3b51fa93ad 100644 --- a/drivers/common/octeontx2/otx2_dev.c +++ b/drivers/common/octeontx2/otx2_dev.c @@ -744,9 +744,9 @@ static void mbox_unregister_irq(struct rte_pci_device *pci_dev, struct otx2_dev *dev) { if (otx2_dev_is_vf(dev)) - return mbox_unregister_vf_irq(pci_dev, dev); + mbox_unregister_vf_irq(pci_dev, dev); else - return mbox_unregister_pf_irq(pci_dev, dev); + mbox_unregister_pf_irq(pci_dev, dev); } static int