]> sigrok.org Git - libsigrok.git/commitdiff
session.c: Drop unneeded check.
authorUwe Hermann <redacted>
Sun, 3 Jul 2016 14:41:16 +0000 (16:41 +0200)
committerUwe Hermann <redacted>
Sun, 3 Jul 2016 14:41:16 +0000 (16:41 +0200)
The dev_acquisition_stop() callback is not optional and always present.

src/session.c

index eb6820b68c227fad4d6b5a510cd809b11454e2cf..50bad8be9be3a7a403216181cab820698d42b8eb 100644 (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... */