diff options
author | Uwe Hermann <uwe@hermann-uwe.de> | 2018-05-18 00:01:05 +0200 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2018-05-18 00:01:05 +0200 |
commit | 7969d8035530d40753c4f880c90a4e90f9679ccc (patch) | |
tree | b749d364c36c1dd457e1869508c3cea8792ae002 /session.c | |
parent | 4e7ccaf9f133106786fd85a432ae23e11d9dcea2 (diff) | |
download | libsigrokdecode-7969d8035530d40753c4f880c90a4e90f9679ccc.tar.gz libsigrokdecode-7969d8035530d40753c4f880c90a4e90f9679ccc.zip |
Random whitespace/cosmetic/consistency fixes.
Diffstat (limited to 'session.c')
-rw-r--r-- | session.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -48,7 +48,6 @@ SRD_PRIV int max_session_id = -1; /** @private */ SRD_PRIV int session_is_valid(struct srd_session *sess) { - if (!sess || sess->session_id < 1) return SRD_ERR; @@ -70,7 +69,6 @@ SRD_PRIV int session_is_valid(struct srd_session *sess) */ SRD_API int srd_session_new(struct srd_session **sess) { - if (!sess) { srd_err("Invalid session pointer."); return SRD_ERR_ARG; @@ -333,6 +331,7 @@ SRD_API int srd_session_terminate_reset(struct srd_session *sess) if (ret != SRD_OK) return ret; } + return SRD_OK; } |