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)
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>

Trivial merge