rocker: fix non-portable err return codes
authorScott Feldman <sfeldma@gmail.com>
Thu, 26 Feb 2015 04:15:36 +0000 (20:15 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 26 Feb 2015 16:21:57 +0000 (11:21 -0500)
commit7eb344f8731a0327155814f387984dedb1df032a
tree050bc4fed980c5d5627525cb9f5d76cc94d9f5c3
parent009f33ed6f9d9da0141c2d18b1c7912d2d9be7c1
rocker: fix non-portable err return codes

The rocker device returns error codes if something goes wrong with descriptor
processing.  Originally the device used standard errno codes for different
errors, but since those errno codes aren't portable across ARCHs, the device
now returns hard-coded error codes that stay constant across diff ARCHs.  Fix
driver to use those same hard-coded values.

Signed-off-by: Scott Feldman <sfeldma@gmail.com>
Acked-by: Jiri Pirko <jiri@resnulli.us>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/rocker/rocker.c
drivers/net/ethernet/rocker/rocker.h