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:
parent
b69c14992e
commit
c97611c16d
1 changed files with 10 additions and 10 deletions
|
@ -15,7 +15,8 @@
|
||||||
#include <linux/usb.h>
|
#include <linux/usb.h>
|
||||||
#include <linux/usb/serial.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;
|
struct usb_serial_driver *driver;
|
||||||
const struct usb_serial_port *port;
|
const struct usb_serial_port *port;
|
||||||
|
@ -94,9 +95,8 @@ static int usb_serial_device_remove (struct device *dev)
|
||||||
int minor;
|
int minor;
|
||||||
|
|
||||||
port = to_usb_serial_port(dev);
|
port = to_usb_serial_port(dev);
|
||||||
if (!port) {
|
if (!port)
|
||||||
return -ENODEV;
|
return -ENODEV;
|
||||||
}
|
|
||||||
|
|
||||||
device_remove_file(&port->dev, &dev_attr_port_number);
|
device_remove_file(&port->dev, &dev_attr_port_number);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue