cosa: missing error code on failure in probe()
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 12 Aug 2015 21:08:01 +0000 (00:08 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 12 Aug 2015 23:53:11 +0000 (16:53 -0700)
commite6d006938c9bda7ffd22af9d3e1257fd75941fb7
treee8d5fb4d5bdbed5ebffa17f2bd51f6ac902a290c
parente941ba8650338ed78e4cfbadca4eda6668a7fe56
cosa: missing error code on failure in probe()

If register_hdlc_device() fails, the current code returns 0 but we
should return an error code instead.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/wan/cosa.c