Staging: usbip: Remove commented code.
authorSantosh Nayak <santoshprasadnayak@gmail.com>
Mon, 20 Feb 2012 03:14:05 +0000 (08:44 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 24 Feb 2012 19:59:57 +0000 (11:59 -0800)
Remove commented code of old style lock initilization

Signed-off-by: Santosh Nayak <santoshprasadnayak@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/usbip/stub_dev.c
drivers/staging/usbip/vhci_hcd.c

index 03420e25d9c64ecd0512eb7029ca287e4c054f4c..fa870e3f7f6a0e6b490e75eb6e9ac311a3220795 100644 (file)
@@ -297,7 +297,6 @@ static struct stub_device *stub_device_alloc(struct usb_device *udev,
        sdev->devid             = (busnum << 16) | devnum;
        sdev->ud.side           = USBIP_STUB;
        sdev->ud.status         = SDEV_ST_AVAILABLE;
-       /* sdev->ud.lock = SPIN_LOCK_UNLOCKED; */
        spin_lock_init(&sdev->ud.lock);
        sdev->ud.tcp_socket     = NULL;
 
@@ -306,7 +305,6 @@ static struct stub_device *stub_device_alloc(struct usb_device *udev,
        INIT_LIST_HEAD(&sdev->priv_free);
        INIT_LIST_HEAD(&sdev->unlink_free);
        INIT_LIST_HEAD(&sdev->unlink_tx);
-       /* sdev->priv_lock = SPIN_LOCK_UNLOCKED; */
        spin_lock_init(&sdev->priv_lock);
 
        init_waitqueue_head(&sdev->tx_waitq);
index 8d96ab065cb75d1376104f113c828266b17b1c72..dca9bf11f0c2e49a5e299867b2e771fa754dc200 100644 (file)
@@ -895,14 +895,12 @@ static void vhci_device_init(struct vhci_device *vdev)
 
        vdev->ud.side   = USBIP_VHCI;
        vdev->ud.status = VDEV_ST_NULL;
-       /* vdev->ud.lock   = SPIN_LOCK_UNLOCKED; */
        spin_lock_init(&vdev->ud.lock);
 
        INIT_LIST_HEAD(&vdev->priv_rx);
        INIT_LIST_HEAD(&vdev->priv_tx);
        INIT_LIST_HEAD(&vdev->unlink_tx);
        INIT_LIST_HEAD(&vdev->unlink_rx);
-       /* vdev->priv_lock = SPIN_LOCK_UNLOCKED; */
        spin_lock_init(&vdev->priv_lock);
 
        init_waitqueue_head(&vdev->waitq_tx);