Commit 52413801 authored by Alexander Viro's avatar Alexander Viro Committed by Linus Torvalds

[PATCH] removed bogus casts of SPIN_LOCK_UNLOCKED

parent 9f7d733d
......@@ -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);
}
......
......@@ -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);
}
......
......@@ -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);
......
......@@ -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);
......
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment