rocker: fix an error code
authorDan Carpenter <dan.carpenter@oracle.com>
Sat, 27 Feb 2016 11:31:43 +0000 (14:31 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sat, 27 Feb 2016 19:06:14 +0000 (14:06 -0500)
commitf73e0c24bf075cf934e73133f5e89052afac1d32
treead7c9a3a7c0d2136fcbda17a8b88c30888f4a9d8
parente1bae75d85432704f9cfac3a156f79b0551946f4
rocker: fix an error code

We intended to return PTR_ERR() here instead of 1.

Fixes: 1f9993f6825f ('rocker: fix a neigh entry leak issue')
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/rocker/rocker_ofdpa.c