mirror of
https://github.com/torvalds/linux.git
synced 2024-11-23 20:51:44 +00:00
Staging: gdm724x: mux: Check return value of register_lte_tty_driver().
Check the return value of of the register_lte_tty_driver() call in the module initialization function. Signed-off-by: Quytelda Kahja <quytelda@tamalin.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
e21981b571
commit
a4b0330ec1
@ -657,7 +657,11 @@ static struct usb_driver gdm_mux_driver = {
|
||||
|
||||
static int __init gdm_usb_mux_init(void)
|
||||
{
|
||||
register_lte_tty_driver();
|
||||
int ret;
|
||||
|
||||
ret = register_lte_tty_driver();
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
return usb_register(&gdm_mux_driver);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user