]> git.hungrycats.org Git - linux/commitdiff
[PATCH] removed bogus casts of SPIN_LOCK_UNLOCKED
authorAlexander Viro <viro@www.linux.org.uk>
Wed, 25 Aug 2004 09:09:58 +0000 (02:09 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Wed, 25 Aug 2004 09:09:58 +0000 (02:09 -0700)
drivers/char/sonypi.c
drivers/media/video/meye.c
drivers/net/sundance.c
drivers/net/tokenring/ibmtr.c
drivers/net/tulip/de4x5.c

index 0a517eb28b933c7ef8e5ac32285060f958fe838c..aa7c91d6f171c3cfc9c952a59e718e9c94f27832 100644 (file)
@@ -67,7 +67,7 @@ static unsigned long mask = 0xffffffff;
 static inline void sonypi_initq(void) {
         sonypi_device.queue.head = sonypi_device.queue.tail = 0;
        sonypi_device.queue.len = 0;
-       sonypi_device.queue.s_lock = (spinlock_t)SPIN_LOCK_UNLOCKED;
+       sonypi_device.queue.s_lock = SPIN_LOCK_UNLOCKED;
        init_waitqueue_head(&sonypi_device.queue.proc_list);
 }
 
index 6f3fe234e2d3c06e133472b63eb8fbb067df0b46..a586b1bc93fab0a6040f55508a6326f8feaa8d50 100644 (file)
@@ -58,7 +58,7 @@ static int video_nr = -1;
 static inline void meye_initq(struct meye_queue *queue) {
        queue->head = queue->tail = 0;
        queue->len = 0;
-       queue->s_lock = (spinlock_t)SPIN_LOCK_UNLOCKED;
+       queue->s_lock = SPIN_LOCK_UNLOCKED;
        init_waitqueue_head(&queue->proc_list);
 }
 
index 849b576347ba7bfe1c9be894faaa2c09504f9989..e0ddf2be907dc74185f257fdc105a6edf0fb1d1f 100644 (file)
@@ -879,7 +879,7 @@ static int netdev_open(struct net_device *dev)
        if (dev->if_port == 0)
                dev->if_port = np->default_port;
 
-       np->mcastlock = (spinlock_t) SPIN_LOCK_UNLOCKED;
+       np->mcastlock = SPIN_LOCK_UNLOCKED;
 
        set_rx_mode(dev);
        writew(0, ioaddr + IntrEnable);
index 69e9246d884725bab3312e4a4b086c035c85036c..c11a992c858d5c5a3ed421c4d7ad4119572a7098 100644 (file)
@@ -895,7 +895,7 @@ static int tok_open(struct net_device *dev)
 
        ti->sram_virt &= ~1; /* to reverse what we do in tok_close */
        /* init the spinlock */
-       ti->lock = (spinlock_t) SPIN_LOCK_UNLOCKED;
+       ti->lock = SPIN_LOCK_UNLOCKED;
        init_timer(&ti->tr_timer);
        
        i = tok_init_card(dev);
index 688e45e9e97a161ea1eb8b6e6472e53aee59d4fe..05e8947f9047d4ea8eec364682ecae3e238fbb49 100644 (file)
@@ -1141,7 +1141,7 @@ de4x5_hw_init(struct net_device *dev, u_long iobase, struct device *gendev)
        lp->asBitValid = TRUE;
        lp->timeout = -1;
        lp->gendev = gendev;
-       lp->lock = (spinlock_t) SPIN_LOCK_UNLOCKED;
+       lp->lock = SPIN_LOCK_UNLOCKED;
        init_timer(&lp->timer);
        de4x5_parse_params(dev);
 
@@ -1316,7 +1316,7 @@ de4x5_open(struct net_device *dev)
     ** Re-initialize the DE4X5... 
     */
     status = de4x5_init(dev);
-    lp->lock = (spinlock_t) SPIN_LOCK_UNLOCKED;
+    lp->lock = SPIN_LOCK_UNLOCKED;
     lp->state = OPEN;
     de4x5_dbg_open(dev);