session.c: Drop unneeded check.
The dev_acquisition_stop() callback is not optional and always present.
This commit is contained in:
parent
0e5a287759
commit
e8b5205bf3
|
@ -830,8 +830,7 @@ SR_API int sr_session_start(struct sr_session *session)
|
|||
lend = l->next;
|
||||
for (l = session->devs; l != lend; l = l->next) {
|
||||
sdi = l->data;
|
||||
if (sdi->driver->dev_acquisition_stop)
|
||||
sdi->driver->dev_acquisition_stop(sdi);
|
||||
sdi->driver->dev_acquisition_stop(sdi);
|
||||
}
|
||||
/* TODO: Handle delayed stops. Need to iterate the event
|
||||
* sources... */
|
||||
|
|
Loading…
Reference in New Issue