cxgb4: fix wrong shift direction
authorDimitris Michailidis <dm@chelsio.com>
Mon, 2 Aug 2010 13:19:22 +0000 (13:19 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 2 Aug 2010 23:26:43 +0000 (16:26 -0700)
Signed-off-by: Dimitris Michailidis <dm@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/cxgb4/t4_hw.h

index e875d095af39571d702b8e5995b2df341b0bf22a..10a055565776cfceb4730df1168b44662d4d9761 100644 (file)
@@ -135,5 +135,5 @@ struct rsp_ctrl {
 
 #define QINTR_CNT_EN       0x1
 #define QINTR_TIMER_IDX(x) ((x) << 1)
-#define QINTR_TIMER_IDX_GET(x) (((x) << 1) & 0x7)
+#define QINTR_TIMER_IDX_GET(x) (((x) >> 1) & 0x7)
 #endif /* __T4_HW_H */