summaryrefslogtreecommitdiffstats
path: root/drivers/usb/serial/usb-serial.c
diff options
context:
space:
mode:
authorJohan Hovold <jhovold@gmail.com>2014-03-12 19:09:41 +0100
committerGreg Kroah-Hartman <greg@kroah.com>2014-03-12 12:44:50 -0700
commitca0400d2caf0d6f18445feea79c8c5a4ccf77e61 (patch)
tree6aa0f9a9d0d8ce16aac3348c82a236594086edaf /drivers/usb/serial/usb-serial.c
parentbd58c7bd6fd5f803b4127717bda9cc6c30d0c806 (diff)
downloadop-kernel-dev-ca0400d2caf0d6f18445feea79c8c5a4ccf77e61.zip
op-kernel-dev-ca0400d2caf0d6f18445feea79c8c5a4ccf77e61.tar.gz
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>
Diffstat (limited to 'drivers/usb/serial/usb-serial.c')
-rw-r--r--drivers/usb/serial/usb-serial.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/usb/serial/usb-serial.c b/drivers/usb/serial/usb-serial.c
index c68fc9f..4c3aeaf 100644
--- a/drivers/usb/serial/usb-serial.c
+++ b/drivers/usb/serial/usb-serial.c
@@ -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;
}
OpenPOWER on IntegriCloud