From: Sudip Mukherjee Date: Thu, 17 Sep 2015 16:44:35 +0000 (+0530) Subject: staging: slicoss: use status in isr X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=cbdc251d1153087f98b4e84f7d7d54357752b9d7;p=linux-beck.git staging: slicoss: use status in isr If we are not able to setup the LINK UP command then don't increment the interrupt count. Signed-off-by: Sudip Mukherjee Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/slicoss/slicoss.c b/drivers/staging/slicoss/slicoss.c index 6ff0b838db79..2025b615a6c1 100644 --- a/drivers/staging/slicoss/slicoss.c +++ b/drivers/staging/slicoss/slicoss.c @@ -2110,7 +2110,8 @@ static void slic_interrupt_card_up(u32 isr, struct adapter *adapter, if (isr & ISR_LEVENT) { adapter->linkevent_interrupts++; - slic_link_event_handler(adapter); + if (slic_link_event_handler(adapter)) + adapter->linkevent_interrupts--; } if ((isr & ISR_UPC) || (isr & ISR_UPCERR) ||