From: Uwe Hermann Date: Sun, 3 Jul 2016 14:41:16 +0000 (+0200) Subject: session.c: Drop unneeded check. X-Git-Tag: libsigrok-0.5.0~288 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=e8b5205bf336f2e0f59e5acd78b3bc9233ba61fd;p=libsigrok.git session.c: Drop unneeded check. The dev_acquisition_stop() callback is not optional and always present. --- diff --git a/src/session.c b/src/session.c index eb6820b6..50bad8be 100644 --- a/src/session.c +++ b/src/session.c @@ -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... */