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
5945bdee
Commit
5945bdee
authored
Nov 07, 2011
by
Manohar Vanga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
simulation: removed uneccessary NULL check in wb_register_device
Signed-off-by:
Manohar Vanga
<
manohar.vanga@cern.ch
>
parent
a81470cb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
5 deletions
+0
-5
wishbone.c
simulation/wishbone.c
+0
-5
No files found.
simulation/wishbone.c
View file @
5945bdee
...
...
@@ -155,11 +155,6 @@ int wb_register_device(struct wb_device *wbdev)
static
atomic_t
global_wb_devno
=
ATOMIC_INIT
(
0
);
int
devno
;
if
(
!
wbdev
||
!
wbdev
->
bus
)
{
pr_err
(
KBUILD_MODNAME
": bus not set
\n
"
);
return
-
EFAULT
;
}
devno
=
atomic_inc_return
(
&
global_wb_devno
);
wbdev
->
dev
.
bus
=
&
wb_bus_type
;
wbdev
->
dev
.
parent
=
&
wb_dev_zero
;
...
...
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