From 52413801b05df5bbd3718a7b56c850c033b1c15b Mon Sep 17 00:00:00 2001 From: Alexander Viro Date: Wed, 25 Aug 2004 02:09:58 -0700 Subject: [PATCH] [PATCH] removed bogus casts of SPIN_LOCK_UNLOCKED --- drivers/char/sonypi.c | 2 +- drivers/media/video/meye.c | 2 +- drivers/net/sundance.c | 2 +- drivers/net/tokenring/ibmtr.c | 2 +- drivers/net/tulip/de4x5.c | 4 ++-- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/char/sonypi.c b/drivers/char/sonypi.c index 0a517eb28b933..aa7c91d6f171c 100644 --- a/drivers/char/sonypi.c +++ b/drivers/char/sonypi.c @@ -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); } diff --git a/drivers/media/video/meye.c b/drivers/media/video/meye.c index 6f3fe234e2d3c..a586b1bc93fab 100644 --- a/drivers/media/video/meye.c +++ b/drivers/media/video/meye.c @@ -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); } diff --git a/drivers/net/sundance.c b/drivers/net/sundance.c index 849b576347ba7..e0ddf2be907dc 100644 --- a/drivers/net/sundance.c +++ b/drivers/net/sundance.c @@ -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); diff --git a/drivers/net/tokenring/ibmtr.c b/drivers/net/tokenring/ibmtr.c index 69e9246d88472..c11a992c858d5 100644 --- a/drivers/net/tokenring/ibmtr.c +++ b/drivers/net/tokenring/ibmtr.c @@ -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); diff --git a/drivers/net/tulip/de4x5.c b/drivers/net/tulip/de4x5.c index 688e45e9e97a1..05e8947f9047d 100644 --- a/drivers/net/tulip/de4x5.c +++ b/drivers/net/tulip/de4x5.c @@ -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); -- 2.53.0