diff options
author | Uwe Hermann <uwe@hermann-uwe.de> | 2018-05-18 01:02:13 +0200 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2018-05-18 16:48:56 +0200 |
commit | 4ccebbd355fb53177dcc46476a5e5105f4859410 (patch) | |
tree | 26f57cf8291e22d64212c17daa4fa39b9e6583f5 /libsigrokdecode-internal.h | |
parent | ec31b9821dbfad0283a56c6d2b5e7d819c59ba51 (diff) | |
download | libsigrokdecode-4ccebbd355fb53177dcc46476a5e5105f4859410.tar.gz libsigrokdecode-4ccebbd355fb53177dcc46476a5e5105f4859410.zip |
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.
Diffstat (limited to 'libsigrokdecode-internal.h')
-rw-r--r-- | libsigrokdecode-internal.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/libsigrokdecode-internal.h b/libsigrokdecode-internal.h index 6fb590c..f1f8e18 100644 --- a/libsigrokdecode-internal.h +++ b/libsigrokdecode-internal.h @@ -70,7 +70,6 @@ struct srd_session { SRD_PRIV int srd_decoder_searchpath_add(const char *path); /* session.c */ -SRD_PRIV int session_is_valid(struct srd_session *sess); SRD_PRIV struct srd_pd_callback *srd_pd_output_callback_find(struct srd_session *sess, int output_type); |