Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
SDB - Self-describing Bus
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
SDB - Self-describing Bus
Commits
17eafc3e
Commit
17eafc3e
authored
Nov 07, 2011
by
Manohar Vanga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
simulation: remove unnecessary label in cleanup code
Signed-off-by:
Manohar Vanga
<
manohar.vanga@cern.ch
>
parent
2d3c5e1c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
fake_wb_bus.c
simulation/fake_wb_bus.c
+1
-3
No files found.
simulation/fake_wb_bus.c
View file @
17eafc3e
...
@@ -84,7 +84,7 @@ static int fake_wbbus_probe(struct device *dev)
...
@@ -84,7 +84,7 @@ static int fake_wbbus_probe(struct device *dev)
while
(
wbd
->
wbd_magic
==
SDWB_WBD_MAGIC
)
{
while
(
wbd
->
wbd_magic
==
SDWB_WBD_MAGIC
)
{
wbdev
=
kzalloc
(
sizeof
(
struct
wb_device
),
GFP_KERNEL
);
wbdev
=
kzalloc
(
sizeof
(
struct
wb_device
),
GFP_KERNEL
);
if
(
!
wbdev
)
if
(
!
wbdev
)
goto
alloc
_fail
;
goto
register
_fail
;
memcpy
(
&
wbdev
->
wbd
,
wbd
,
sizeof
(
struct
sdwb_wbd
));
memcpy
(
&
wbdev
->
wbd
,
wbd
,
sizeof
(
struct
sdwb_wbd
));
if
(
wb_register_device
(
wbdev
)
<
0
)
if
(
wb_register_device
(
wbdev
)
<
0
)
goto
register_fail
;
goto
register_fail
;
...
@@ -100,8 +100,6 @@ static int fake_wbbus_probe(struct device *dev)
...
@@ -100,8 +100,6 @@ static int fake_wbbus_probe(struct device *dev)
register_fail:
register_fail:
kfree
(
wbdev
);
kfree
(
wbdev
);
alloc_fail:
mutex_lock
(
&
list_lock
);
mutex_lock
(
&
list_lock
);
list_for_each_entry_safe
(
wbdev
,
next
,
&
spec_devices
,
list
)
{
list_for_each_entry_safe
(
wbdev
,
next
,
&
spec_devices
,
list
)
{
list_del
(
&
wbdev
->
list
);
list_del
(
&
wbdev
->
list
);
...
...
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