usb-serial-bus: tidy coding style
Tidy up Signed-off-by: Alan Cox <alan@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
Родитель
b69c14992e
Коммит
c97611c16d
|
@ -15,7 +15,8 @@
|
|||
#include <linux/usb.h>
|
||||
#include <linux/usb/serial.h>
|
||||
|
||||
static int usb_serial_device_match (struct device *dev, struct device_driver *drv)
|
||||
static int usb_serial_device_match(struct device *dev,
|
||||
struct device_driver *drv)
|
||||
{
|
||||
struct usb_serial_driver *driver;
|
||||
const struct usb_serial_port *port;
|
||||
|
@ -94,9 +95,8 @@ static int usb_serial_device_remove (struct device *dev)
|
|||
int minor;
|
||||
|
||||
port = to_usb_serial_port(dev);
|
||||
if (!port) {
|
||||
if (!port)
|
||||
return -ENODEV;
|
||||
}
|
||||
|
||||
device_remove_file(&port->dev, &dev_attr_port_number);
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче