Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
52413801
Commit
52413801
authored
Aug 25, 2004
by
Alexander Viro
Committed by
Linus Torvalds
Aug 25, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] removed bogus casts of SPIN_LOCK_UNLOCKED
parent
9f7d733d
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
6 additions
and
6 deletions
+6
-6
drivers/char/sonypi.c
drivers/char/sonypi.c
+1
-1
drivers/media/video/meye.c
drivers/media/video/meye.c
+1
-1
drivers/net/sundance.c
drivers/net/sundance.c
+1
-1
drivers/net/tokenring/ibmtr.c
drivers/net/tokenring/ibmtr.c
+1
-1
drivers/net/tulip/de4x5.c
drivers/net/tulip/de4x5.c
+2
-2
No files found.
drivers/char/sonypi.c
View file @
52413801
...
@@ -67,7 +67,7 @@ static unsigned long mask = 0xffffffff;
...
@@ -67,7 +67,7 @@ static unsigned long mask = 0xffffffff;
static
inline
void
sonypi_initq
(
void
)
{
static
inline
void
sonypi_initq
(
void
)
{
sonypi_device
.
queue
.
head
=
sonypi_device
.
queue
.
tail
=
0
;
sonypi_device
.
queue
.
head
=
sonypi_device
.
queue
.
tail
=
0
;
sonypi_device
.
queue
.
len
=
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
);
init_waitqueue_head
(
&
sonypi_device
.
queue
.
proc_list
);
}
}
...
...
drivers/media/video/meye.c
View file @
52413801
...
@@ -58,7 +58,7 @@ static int video_nr = -1;
...
@@ -58,7 +58,7 @@ static int video_nr = -1;
static
inline
void
meye_initq
(
struct
meye_queue
*
queue
)
{
static
inline
void
meye_initq
(
struct
meye_queue
*
queue
)
{
queue
->
head
=
queue
->
tail
=
0
;
queue
->
head
=
queue
->
tail
=
0
;
queue
->
len
=
0
;
queue
->
len
=
0
;
queue
->
s_lock
=
(
spinlock_t
)
SPIN_LOCK_UNLOCKED
;
queue
->
s_lock
=
SPIN_LOCK_UNLOCKED
;
init_waitqueue_head
(
&
queue
->
proc_list
);
init_waitqueue_head
(
&
queue
->
proc_list
);
}
}
...
...
drivers/net/sundance.c
View file @
52413801
...
@@ -879,7 +879,7 @@ static int netdev_open(struct net_device *dev)
...
@@ -879,7 +879,7 @@ static int netdev_open(struct net_device *dev)
if
(
dev
->
if_port
==
0
)
if
(
dev
->
if_port
==
0
)
dev
->
if_port
=
np
->
default_port
;
dev
->
if_port
=
np
->
default_port
;
np
->
mcastlock
=
(
spinlock_t
)
SPIN_LOCK_UNLOCKED
;
np
->
mcastlock
=
SPIN_LOCK_UNLOCKED
;
set_rx_mode
(
dev
);
set_rx_mode
(
dev
);
writew
(
0
,
ioaddr
+
IntrEnable
);
writew
(
0
,
ioaddr
+
IntrEnable
);
...
...
drivers/net/tokenring/ibmtr.c
View file @
52413801
...
@@ -895,7 +895,7 @@ static int tok_open(struct net_device *dev)
...
@@ -895,7 +895,7 @@ static int tok_open(struct net_device *dev)
ti
->
sram_virt
&=
~
1
;
/* to reverse what we do in tok_close */
ti
->
sram_virt
&=
~
1
;
/* to reverse what we do in tok_close */
/* init the spinlock */
/* init the spinlock */
ti
->
lock
=
(
spinlock_t
)
SPIN_LOCK_UNLOCKED
;
ti
->
lock
=
SPIN_LOCK_UNLOCKED
;
init_timer
(
&
ti
->
tr_timer
);
init_timer
(
&
ti
->
tr_timer
);
i
=
tok_init_card
(
dev
);
i
=
tok_init_card
(
dev
);
...
...
drivers/net/tulip/de4x5.c
View file @
52413801
...
@@ -1141,7 +1141,7 @@ de4x5_hw_init(struct net_device *dev, u_long iobase, struct device *gendev)
...
@@ -1141,7 +1141,7 @@ de4x5_hw_init(struct net_device *dev, u_long iobase, struct device *gendev)
lp
->
asBitValid
=
TRUE
;
lp
->
asBitValid
=
TRUE
;
lp
->
timeout
=
-
1
;
lp
->
timeout
=
-
1
;
lp
->
gendev
=
gendev
;
lp
->
gendev
=
gendev
;
lp
->
lock
=
(
spinlock_t
)
SPIN_LOCK_UNLOCKED
;
lp
->
lock
=
SPIN_LOCK_UNLOCKED
;
init_timer
(
&
lp
->
timer
);
init_timer
(
&
lp
->
timer
);
de4x5_parse_params
(
dev
);
de4x5_parse_params
(
dev
);
...
@@ -1316,7 +1316,7 @@ de4x5_open(struct net_device *dev)
...
@@ -1316,7 +1316,7 @@ de4x5_open(struct net_device *dev)
** Re-initialize the DE4X5...
** Re-initialize the DE4X5...
*/
*/
status
=
de4x5_init
(
dev
);
status
=
de4x5_init
(
dev
);
lp
->
lock
=
(
spinlock_t
)
SPIN_LOCK_UNLOCKED
;
lp
->
lock
=
SPIN_LOCK_UNLOCKED
;
lp
->
state
=
OPEN
;
lp
->
state
=
OPEN
;
de4x5_dbg_open
(
dev
);
de4x5_dbg_open
(
dev
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment