mirror of https://gitee.com/openkylin/linux.git
at86rf230: squash unnecessary dereferencing
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>
This commit is contained in:
parent
7ad38b8fbf
commit
90566363b5
|
@ -904,7 +904,7 @@ static irqreturn_t at86rf230_isr(int irq, void *data)
|
||||||
u8 *buf = ctx->buf;
|
u8 *buf = ctx->buf;
|
||||||
int rc;
|
int rc;
|
||||||
|
|
||||||
disable_irq_nosync(lp->spi->irq);
|
disable_irq_nosync(irq);
|
||||||
|
|
||||||
buf[0] = (RG_IRQ_STATUS & CMD_REG_MASK) | CMD_REG;
|
buf[0] = (RG_IRQ_STATUS & CMD_REG_MASK) | CMD_REG;
|
||||||
ctx->trx.len = 2;
|
ctx->trx.len = 2;
|
||||||
|
|
Loading…
Reference in New Issue