USB: serial: add missing braces
Add missing braces to conditional branches and one loop in usb-serial core and generic implementation. Signed-off-by: Johan Hovold <jhovold@gmail.com> Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
This commit is contained in:

committed by
Greg Kroah-Hartman

parent
bd58c7bd6f
commit
ca0400d2ca
@@ -1160,9 +1160,9 @@ static int usb_serial_reset_resume(struct usb_interface *intf)
|
||||
usb_serial_unpoison_port_urbs(serial);
|
||||
|
||||
serial->suspending = 0;
|
||||
if (serial->type->reset_resume)
|
||||
if (serial->type->reset_resume) {
|
||||
rv = serial->type->reset_resume(serial);
|
||||
else {
|
||||
} else {
|
||||
rv = -EOPNOTSUPP;
|
||||
intf->needs_binding = 1;
|
||||
}
|
||||
@@ -1337,9 +1337,9 @@ static int usb_serial_register(struct usb_serial_driver *driver)
|
||||
if (retval) {
|
||||
pr_err("problem %d when registering driver %s\n", retval, driver->description);
|
||||
list_del(&driver->driver_list);
|
||||
} else
|
||||
} else {
|
||||
pr_info("USB Serial support registered for %s\n", driver->description);
|
||||
|
||||
}
|
||||
mutex_unlock(&table_lock);
|
||||
return retval;
|
||||
}
|
||||
|
Reference in New Issue
Block a user