]> git.baikalelectronics.ru Git - uboot.git/commit
net: zynq_gem: Do not return -ENOSYS on success
authorOlliver Schinagl <oliver@schinagl.nl>
Mon, 3 Apr 2017 14:18:53 +0000 (16:18 +0200)
committerJoe Hershberger <joe.hershberger@ni.com>
Fri, 2 Jun 2017 19:44:18 +0000 (14:44 -0500)
commiteb5d16f2858b96f5f39b5bce8235ea3a82208ef8
tree1d1baa812dca3940a19fc0aafed38bd6bd9e4d3c
parentf9b66aa5887f4d3c786ba239b965f425a54925e2
net: zynq_gem: Do not return -ENOSYS on success

The .read_rom_hwaddr net_ops hook does not check the return value, which
is why it was never caught that we are currently returning 0 if the
read_rom_hwaddr function return -ENOSYS and -ENOSYS otherwise.

In this case we can simplify this by just returning the result of the
function.

Signed-off-by: Olliver Schinagl <oliver@schinagl.nl>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
Acked-by: Michal Simek <michal.simek@xilinx.com>
drivers/net/zynq_gem.c