Skip to content

Commit

Permalink
cw1200: make cw1200_spi_irq_unsubscribe() void
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Jason Yan authored and Kalle Valo committed Apr 15, 2020
1 parent a69a132 commit 80efb44
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions drivers/net/wireless/st/cw1200/cw1200_spi.c
Original file line number Diff line number Diff line change
Expand Up @@ -268,15 +268,11 @@ static int cw1200_spi_irq_subscribe(struct hwbus_priv *self)
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)
Expand Down

0 comments on commit 80efb44

Please sign in to comment.