cxgb4: Fixes static checker warning in mps_tcam_show()
authorHariprasad Shenai <hariprasad@chelsio.com>
Fri, 8 Jan 2016 06:51:25 +0000 (12:21 +0530)
committerDavid S. Miller <davem@davemloft.net>
Mon, 11 Jan 2016 03:42:03 +0000 (22:42 -0500)
commit89e7a154e01cffa325874e90cbb124057416de02
tree5c69bb0abb624a9c2b41cf764943dbb6c075c794
parent1f76f7315dd2ac7b462a36d2971a9328583b5eb7
cxgb4: Fixes static checker warning in mps_tcam_show()

The commit 115b56af88b5 ("cxgb4: Update mps_tcam output to include T6
fields") from Dec 23, 2015, leads to the following static checker
warning:

        drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c:1735
mps_tcam_show()
        warn: we tested 'lookup_type' before and it was 'true'

Fixing it.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Hariprasad Shenai <hariprasad@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c