Re: [PATCH net-next] cxgb4: Fix static checker warning

2015-06-05 Thread David Miller
From: Hariprasad Shenai Date: Fri, 5 Jun 2015 14:36:33 +0530 > The patch e85c9a7abfa4: ("cxgb4/cxgb4vf: Add code to calculate T5 BAR2 > Offsets for SGE Queue Registers") from Dec 3, 2014, leads to the > following static checker warning: > > drivers/net/ethernet/chelsio/cxgb4/t4_hw.c:535

[PATCH net-next] cxgb4: Fix static checker warning

2015-06-04 Thread Hariprasad Shenai
The patch e85c9a7abfa4: ("cxgb4/cxgb4vf: Add code to calculate T5 BAR2 Offsets for SGE Queue Registers") from Dec 3, 2014, leads to the following static checker warning: drivers/net/ethernet/chelsio/cxgb4/t4_hw.c:5358 t4_bar2_sge_qregs() warn: should '(qid >> qpp_shift) <<