mlxsw: Fix mlxsw_i2c_write return value
authorElad Raz <eladr@mellanox.com>
Mon, 9 Jan 2017 10:25:44 +0000 (11:25 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 9 Jan 2017 19:35:13 +0000 (14:35 -0500)
commit36ca68bf9919299c95ff80e7cf3c217f4c250cbe
tree7b9275d40690c73e3ca3e2138f47a968451a1ebc
parentf89d21b9c310d43ad8513a3fe345b7677ee7ead7
mlxsw: Fix mlxsw_i2c_write return value

The "err" variable is been checked, return always 0.

Signed-off-by: Elad Raz <eladr@mellanox.com>
Acked-by: Ido Schimmel <idosch@mellanox.com>
Acked-by: Vadim Pasternak <vadimp@mellanox.com>
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/i2c.c