From: Uwe Hermann Date: Thu, 17 May 2018 23:02:13 +0000 (+0200) Subject: Simplify code by dropping session_is_valid(). X-Git-Url: https://sigrok.org/gitweb/?a=commitdiff_plain;h=4ccebbd355fb53177dcc46476a5e5105f4859410;hp=4ccebbd355fb53177dcc46476a5e5105f4859410;p=libsigrokdecode.git 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. ---