]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9763949663bfdd3b12973a78956201b8d9accb28
tree5c69bb0abb624a9c2b41cf764943dbb6c075c794
parentb822e727007b33ff784a120f2e06340e5ea93628
cxgb4: Fixes static checker warning in mps_tcam_show()

The commit 43bd04cabc4f ("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