Re: [patch] cosa: missing error code on failure in probe()

2015-08-12 Thread David Miller
From: Dan Carpenter Date: Thu, 13 Aug 2015 00:08:01 +0300 > If register_hdlc_device() fails, the current code returns 0 but we > should return an error code instead. > > Signed-off-by: Dan Carpenter Applied, thanks Dan. -- To unsubscribe from this list: send the line "unsubscribe netdev" in th

[patch] cosa: missing error code on failure in probe()

2015-08-12 Thread Dan Carpenter
If register_hdlc_device() fails, the current code returns 0 but we should return an error code instead. Signed-off-by: Dan Carpenter diff --git a/drivers/net/wan/cosa.c b/drivers/net/wan/cosa.c index 7193b73..848ea6a 100644 --- a/drivers/net/wan/cosa.c +++ b/drivers/net/wan/cosa.c @@ -589,7 +589