From e8b5205bf336f2e0f59e5acd78b3bc9233ba61fd Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Sun, 3 Jul 2016 16:41:16 +0200 Subject: [PATCH] session.c: Drop unneeded check. The dev_acquisition_stop() callback is not optional and always present. --- src/session.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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... */