sr_session_send_meta(): Drop unneeded check.

As of right now, sr_config_new() "cannot fail" and will never return NULL.
This commit is contained in:
Uwe Hermann 2019-04-17 17:09:17 +02:00
parent 26e96658ab
commit 9652610080
2 changed files with 6 additions and 2 deletions

View File

@ -571,6 +571,12 @@ SR_PRIV void sr_hw_cleanup_all(const struct sr_context *ctx)
*
* A floating reference can be passed in for data.
*
* @param key The config key to use.
* @param data The GVariant data to use.
*
* @return The newly allocated struct sr_config. This function is assumed
* to never fail.
*
* @private
*/
SR_PRIV struct sr_config *sr_config_new(uint32_t key, GVariant *data)

View File

@ -1092,8 +1092,6 @@ SR_PRIV int sr_session_send_meta(const struct sr_dev_inst *sdi,
int ret;
cfg = sr_config_new(key, var);
if (!cfg)
return SR_ERR;
memset(&meta, 0, sizeof(meta));