Skip to content

Commit

Permalink
USB: opticon: remove redundant initialisation
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Johan Hovold authored and Greg Kroah-Hartman committed Nov 21, 2012
1 parent 3157fad commit b0f4765
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/usb/serial/opticon.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit b0f4765

Please sign in to comment.