atl1c: set ATL1C_WORK_EVENT_RESET bit correctly
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 7 Mar 2012 00:02:04 +0000 (00:02 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 8 Mar 2012 08:27:45 +0000 (00:27 -0800)
ATL1C_WORK_EVENT_RESET is zero so the original code here is a nop.  The
intent was to set the zero bit.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/atheros/atl1c/atl1c_main.c

index 1ff3c6df35a21a5f03b66b8316839466a3655e31..47a9bb2c813cb0fa2fba319044510c2e93e00412 100644 (file)
@@ -1710,7 +1710,7 @@ static irqreturn_t atl1c_intr(int irq, void *data)
                                        "atl1c hardware error (status = 0x%x)\n",
                                        status & ISR_ERROR);
                        /* reset MAC */
-                       adapter->work_event |= ATL1C_WORK_EVENT_RESET;
+                       set_bit(ATL1C_WORK_EVENT_RESET, &adapter->work_event);
                        schedule_work(&adapter->common_task);
                        return IRQ_HANDLED;
                }