projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3157fad
)
USB: opticon: remove redundant initialisation
author
Johan Hovold
<jhovold@gmail.com>
Sun, 18 Nov 2012 12:23:25 +0000
(13:23 +0100)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Wed, 21 Nov 2012 21:33:54 +0000
(13:33 -0800)
Remove redundant zero-initialisation of outstanding-urbs field in
kzalloced struct.
Signed-off-by: Johan Hovold <jhovold@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/serial/opticon.c
patch
|
blob
|
history
diff --git
a/drivers/usb/serial/opticon.c
b/drivers/usb/serial/opticon.c
index
f81ffb0
..
2fc3dfc
100644
(file)
--- a/
drivers/usb/serial/opticon.c
+++ b/
drivers/usb/serial/opticon.c
@@
-486,7
+486,6
@@
static int opticon_startup(struct usb_serial *serial)
spin_lock_init(&priv->lock);
priv->serial = serial;
priv->port = serial->port[0];
- priv->outstanding_urbs = 0; /* Init the outstanding urbs */
/* find our bulk endpoint */
intf = serial->interface->altsetting;