OSDN Git Service

Merge branch 'mlxsw-Various-static-checkers-fixes'
authorDavid S. Miller <davem@davemloft.net>
Fri, 27 Mar 2020 22:06:50 +0000 (15:06 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 27 Mar 2020 22:06:50 +0000 (15:06 -0700)
commita1c7a536e01893ba2e8422f97b88cc165f25258f
tree975d23ab7473a4eb36b5d96f988abeca67ab6bd3
parent8a8f8281e7e7a838b015276cce0443e319c5ebd6
parenta84acf7830c25284ae4c60d1fe53b739809db08d
Merge branch 'mlxsw-Various-static-checkers-fixes'

Ido Schimmel says:

====================
mlxsw: Various static checkers fixes

Jakub told me he gets some warnings with W=1, so I decided to check with
sparse, smatch and coccinelle as well. This patch set fixes all the
issues found. None are actual bugs / regressions and therefore not
targeted at net.

Patches #1-#2 add missing kernel-doc comments.

Patch #3 removes dead code.

Patch #4 reworks the ACL code to avoid defining a static variable in a
header file.

Patch #5 removes unnecessary conversion to bool that coccinelle warns
about.

Patch #6 avoids false-positive uninitialized symbol errors emitted by
smatch.
====================

Signed-off-by: David S. Miller <davem@davemloft.net>