summaryrefslogtreecommitdiff
path: root/session.c
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2018-05-18 00:01:05 +0200
committerUwe Hermann <uwe@hermann-uwe.de>2018-05-18 00:01:05 +0200
commit7969d8035530d40753c4f880c90a4e90f9679ccc (patch)
treeb749d364c36c1dd457e1869508c3cea8792ae002 /session.c
parent4e7ccaf9f133106786fd85a432ae23e11d9dcea2 (diff)
downloadlibsigrokdecode-7969d8035530d40753c4f880c90a4e90f9679ccc.tar.gz
libsigrokdecode-7969d8035530d40753c4f880c90a4e90f9679ccc.zip
Random whitespace/cosmetic/consistency fixes.
Diffstat (limited to 'session.c')
-rw-r--r--session.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/session.c b/session.c
index 4d794df..cec97cf 100644
--- a/session.c
+++ b/session.c
@@ -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;
}