stmmac: ipq806x: Return error values instead of pointers
authorStephen Boyd <sboyd@codeaurora.org>
Thu, 3 Dec 2015 07:55:15 +0000 (23:55 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 3 Dec 2015 20:24:42 +0000 (15:24 -0500)
commitead87637a9e47f6ce17e4bc9e4c99472f10d72b2
tree7a580bc801991d460aa67e8f1dc7ec8aefebb1df
parentdc8d1eb305984b1182f5e85de3c3a1f8592b83af
stmmac: ipq806x: Return error values instead of pointers

Typically we return error pointers when we want to use those
pointers in the non-error case, but this function is just
returning error pointers or NULL for success. Change the style to
plain int to follow normal kernel coding styles.

Cc: Joachim Eastwood <manabian@gmail.com>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/dwmac-ipq806x.c