rocker: fix error return code in rocker_probe()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Thu, 16 Apr 2015 12:21:02 +0000 (20:21 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 16 Apr 2015 16:13:39 +0000 (12:13 -0400)
commit3122a92e80957e30ea9afd963128c6e6c0f5c2ac
treea21818b6061e0575d95db190814db321a385e2ea
parent538cc282a3efb62cdb62ff9e6e44918c11a3c886
rocker: fix error return code in rocker_probe()

Fix to return -EINVAL from the invalid PCI region size error
handling case instead of 0, as done elsewhere in this function.

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Acked-by: Jiri Pirko <jiri@resnulli.us>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/rocker/rocker.c