summaryrefslogtreecommitdiff
path: root/drivers/net/wireless
diff options
context:
space:
mode:
authorJason Yan <yanaijie@huawei.com>2020-04-10 17:09:10 +0800
committerKalle Valo <kvalo@codeaurora.org>2020-04-15 11:38:26 +0300
commit80efb443ea0346791a79dade0e65c4a252f0571f (patch)
tree6a065769774f0d9130401bb8bd3fa9139888ef4c /drivers/net/wireless
parenta69a1328fb03309555d70f4add76eae3780a6fba (diff)
cw1200: make cw1200_spi_irq_unsubscribe() void
Fix the following coccicheck warning: drivers/net/wireless/st/cw1200/cw1200_spi.c:273:5-8: Unneeded variable: "ret". Return "0" on line 279 Reported-by: Hulk Robot <hulkci@huawei.com> Signed-off-by: Jason Yan <yanaijie@huawei.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org> Link: https://lore.kernel.org/r/20200410090910.27132-1-yanaijie@huawei.com
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r--drivers/net/wireless/st/cw1200/cw1200_spi.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/net/wireless/st/cw1200/cw1200_spi.c b/drivers/net/wireless/st/cw1200/cw1200_spi.c
index ef01caac629c..271ed2ce2d7f 100644
--- a/drivers/net/wireless/st/cw1200/cw1200_spi.c
+++ b/drivers/net/wireless/st/cw1200/cw1200_spi.c
@@ -268,15 +268,11 @@ exit:
return ret;
}
-static int cw1200_spi_irq_unsubscribe(struct hwbus_priv *self)
+static void cw1200_spi_irq_unsubscribe(struct hwbus_priv *self)
{
- int ret = 0;
-
pr_debug("SW IRQ unsubscribe\n");
disable_irq_wake(self->func->irq);
free_irq(self->func->irq, self);
-
- return ret;
}
static int cw1200_spi_off(const struct cw1200_platform_data_spi *pdata)