at86rf230: squash unnecessary dereferencing
authorAlexander Aring <alex.aring@gmail.com>
Tue, 7 Oct 2014 08:38:29 +0000 (10:38 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Sat, 25 Oct 2014 05:56:23 +0000 (07:56 +0200)
This patch removes dereferencing irq number over spi struct. Instead we
doing it directly over isr paramater.

Signed-off-by: Alexander Aring <alex.aring@gmail.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/net/ieee802154/at86rf230.c

index b26135fd0a2d2d5298cae0ced17ffd13b75a383f..09503fbd9953a95b557f426b28a2662f69abb4d2 100644 (file)
@@ -904,7 +904,7 @@ static irqreturn_t at86rf230_isr(int irq, void *data)
        u8 *buf = ctx->buf;
        int rc;
 
-       disable_irq_nosync(lp->spi->irq);
+       disable_irq_nosync(irq);
 
        buf[0] = (RG_IRQ_STATUS & CMD_REG_MASK) | CMD_REG;
        ctx->trx.len = 2;