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:
parent
26e96658ab
commit
9652610080
|
@ -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.
|
* 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
|
* @private
|
||||||
*/
|
*/
|
||||||
SR_PRIV struct sr_config *sr_config_new(uint32_t key, GVariant *data)
|
SR_PRIV struct sr_config *sr_config_new(uint32_t key, GVariant *data)
|
||||||
|
|
|
@ -1092,8 +1092,6 @@ SR_PRIV int sr_session_send_meta(const struct sr_dev_inst *sdi,
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
cfg = sr_config_new(key, var);
|
cfg = sr_config_new(key, var);
|
||||||
if (!cfg)
|
|
||||||
return SR_ERR;
|
|
||||||
|
|
||||||
memset(&meta, 0, sizeof(meta));
|
memset(&meta, 0, sizeof(meta));
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue