]> sigrok.org Git - libsigrokdecode.git/commit
Simplify code by dropping session_is_valid().
authorUwe Hermann <redacted>
Thu, 17 May 2018 23:02:13 +0000 (01:02 +0200)
committerUwe Hermann <redacted>
Fri, 18 May 2018 14:48:56 +0000 (16:48 +0200)
commit4ccebbd355fb53177dcc46476a5e5105f4859410
tree26f57cf8291e22d64212c17daa4fa39b9e6583f5
parentec31b9821dbfad0283a56c6d2b5e7d819c59ba51
Simplify code by dropping session_is_valid().

A simple NULL check is sufficient here, max_session_id is being
properly handled by srd_init(), srd_exit(), srd_session_new().

This might also have a small performance benefit.
instance.c
libsigrokdecode-internal.h
session.c