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
nexedi
linux
Commits
9650e2ee
Commit
9650e2ee
authored
Oct 07, 2002
by
Dave Jones
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] More list_del_init usage increases
parent
d4f4d3ac
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
8 deletions
+4
-8
drivers/usb/class/audio.c
drivers/usb/class/audio.c
+1
-2
fs/hfs/catalog.c
fs/hfs/catalog.c
+3
-6
No files found.
drivers/usb/class/audio.c
View file @
9650e2ee
...
@@ -3841,8 +3841,7 @@ static void usb_audio_disconnect(struct usb_interface *intf)
...
@@ -3841,8 +3841,7 @@ static void usb_audio_disconnect(struct usb_interface *intf)
return
;
return
;
}
}
down
(
&
open_sem
);
down
(
&
open_sem
);
list_del
(
&
s
->
audiodev
);
list_del_init
(
&
s
->
audiodev
);
INIT_LIST_HEAD
(
&
s
->
audiodev
);
s
->
usbdev
=
NULL
;
s
->
usbdev
=
NULL
;
dev_set_drvdata
(
&
intf
->
dev
,
NULL
);
dev_set_drvdata
(
&
intf
->
dev
,
NULL
);
...
...
fs/hfs/catalog.c
View file @
9650e2ee
...
@@ -158,8 +158,7 @@ static inline void insert_hash(struct hfs_cat_entry *entry)
...
@@ -158,8 +158,7 @@ static inline void insert_hash(struct hfs_cat_entry *entry)
static
inline
void
remove_hash
(
struct
hfs_cat_entry
*
entry
)
static
inline
void
remove_hash
(
struct
hfs_cat_entry
*
entry
)
{
{
list_del
(
&
entry
->
hash
);
list_del_init
(
&
entry
->
hash
);
INIT_LIST_HEAD
(
&
entry
->
hash
);
}
}
/*
/*
...
@@ -223,8 +222,7 @@ static void delete_entry(struct hfs_cat_entry *entry)
...
@@ -223,8 +222,7 @@ static void delete_entry(struct hfs_cat_entry *entry)
{
{
if
(
!
(
entry
->
state
&
HFS_DELETED
))
{
if
(
!
(
entry
->
state
&
HFS_DELETED
))
{
entry
->
state
|=
HFS_DELETED
;
entry
->
state
|=
HFS_DELETED
;
list_del
(
&
entry
->
hash
);
list_del_init
(
&
entry
->
hash
);
INIT_LIST_HEAD
(
&
entry
->
hash
);
if
(
entry
->
type
==
HFS_CDR_FIL
)
{
if
(
entry
->
type
==
HFS_CDR_FIL
)
{
/* free all extents */
/* free all extents */
...
@@ -836,8 +834,7 @@ static void invalidate_list(struct list_head *head, struct hfs_mdb *mdb,
...
@@ -836,8 +834,7 @@ static void invalidate_list(struct list_head *head, struct hfs_mdb *mdb,
}
}
if
(
!
entry
->
count
)
{
if
(
!
entry
->
count
)
{
list_del
(
&
entry
->
hash
);
list_del_init
(
&
entry
->
hash
);
INIT_LIST_HEAD
(
&
entry
->
hash
);
list_del
(
&
entry
->
list
);
list_del
(
&
entry
->
list
);
list_add
(
&
entry
->
list
,
dispose
);
list_add
(
&
entry
->
list
,
dispose
);
continue
;
continue
;
...
...
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