staging: ozwpan: fix error return code in oz_cdev_register()

Fix to return a negative error code from the error handling
case instead of 0, as done elsewhere in this function.

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Wei Yongjun 2013-04-25 17:32:16 +08:00 • committed by Greg Kroah-Hartman
commit b491564eb2