mlxsw: core: remove an unnecessary condition
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 6 Jan 2016 09:56:30 +0000 (12:56 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 6 Jan 2016 20:07:47 +0000 (15:07 -0500)
commit719255d0e29463ddba2d01a72c1e74092793103a
tree9427abd2947c56d701929f41de26c134077b7173
parentc406700cdf882b89cb036117414fcd8b0cc2656d
mlxsw: core: remove an unnecessary condition

We checked "err" on the lines before so we know it's zero here.

These cause a static checker warning because checking known things can
indicate a bug.  Maybe there is a missing assignment or we are checking
the wrong variable.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/core_hwmon.c