Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
White Rabbit Trigger Distribution
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
White Rabbit Trigger Distribution
Commits
0c1d31e9
Commit
0c1d31e9
authored
Aug 14, 2018
by
Federico Vaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sw:fw:fw: return error if no free entry available
Signed-off-by:
Federico Vaga
<
federico.vaga@cern.ch
>
parent
f9ac16f3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
5 deletions
+1
-5
wrtd-rt-fd.c
software/firmware/fd/wrtd-rt-fd.c
+1
-5
No files found.
software/firmware/fd/wrtd-rt-fd.c
View file @
0c1d31e9
...
...
@@ -763,17 +763,13 @@ static int wrtd_out_hash_table_insert(struct trtl_fw_msg *msg_i,
return
0
;
/* nothing to do is a valid trigger */
hidx
=
wrtd_out_hash_table_free
(
&
triggers
[
tidx
].
id
);
if
(
hidx
<
0
)
goto
out
;
if
(
hidx
>=
FD_HASH_ENTRIES
)
if
(
hidx
<
0
||
hidx
>=
FD_HASH_ENTRIES
)
return
-
1
;
tlist_count
++
;
ht
[
hidx
]
=
&
triggers
[
tidx
];
msg_o
->
header
->
msg_id
=
msg_i
->
header
->
msg_id
;
out:
return
0
;
}
...
...
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