Commit 9c69ca67 authored by Federico Vaga's avatar Federico Vaga

wrtd:lib: remove unused function

Signed-off-by: Federico Vaga's avatarFederico Vaga <federico.vaga@cern.ch>


NOTE
This commit has been created by `git subtree` on the Mock Turtle repository
on tag mock-turtle-2.0

This commit will not compile
parent 07316099
......@@ -41,24 +41,6 @@ static inline int wrtd_out_send_and_receive_sync(struct wrtd_desc *wrtd,
}
static int wrtd_out_trigger_first_free(struct wrtd_node *dev)
{
struct wrtd_output_trigger_state trigger;
int err, i;
for (i = 0; i < FD_HASH_ENTRIES; i++) {
/* It does not matter which channel, use 0 */
err = wrtd_out_trig_state_get_by_index(dev, i, 0,
&trigger);
if (err && errno == EWRTD_NOFOUND_TRIGGER)
return i;
}
errno = ENOMEM;
return -1;
}
/**
* It retrieves the trigger index where you can write.
* If the trigger with ID 'tid' already exists it returns its index,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment