bonding: Remove unnecessary returned value check
authorZhu Yanjun <yanjun.zhu@oracle.com>
Fri, 3 Feb 2017 04:46:21 +0000 (23:46 -0500)
committerDavid S. Miller <davem@davemloft.net>
Fri, 3 Feb 2017 21:25:17 +0000 (16:25 -0500)
commit3d67576da15167b2669e4765ca9e383f6bcb4171
tree75633013cb15f6d18562d68bee6668a2c78f3ef7
parent38ab52e8e1e2dd65f2d349f82553335813b638d2
bonding: Remove unnecessary returned value check

The function bond_info_query alwarys returns 0. As such, in the function
bond_do_ioctl, it is not necessary to check the returned value. So the
interface type of the function bond_info_query is changed to void. The
redundant check is removed.

Signed-off-by: Zhu Yanjun <yanjun.zhu@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bonding/bond_main.c