session.c: Drop unneeded check.

The dev_acquisition_stop() callback is not optional and always present.
This commit is contained in:
Uwe Hermann 2016-07-03 16:41:16 +02:00
parent 0e5a287759
commit e8b5205bf3
1 changed files with 1 additions and 2 deletions

View File

@ -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... */