From 7969d8035530d40753c4f880c90a4e90f9679ccc Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Fri, 18 May 2018 00:01:05 +0200 Subject: Random whitespace/cosmetic/consistency fixes. --- session.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'session.c') 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; } -- cgit v1.2.3-70-g09d2