aboutsummaryrefslogtreecommitdiffstats
path: root/net/caif/caif_dev.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/caif/caif_dev.c')
-rw-r--r--net/caif/caif_dev.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/net/caif/caif_dev.c b/net/caif/caif_dev.c
index e84837e1bc86..be1f674a3b67 100644
--- a/net/caif/caif_dev.c
+++ b/net/caif/caif_dev.c
@@ -330,20 +330,19 @@ int caif_connect_client(struct caif_connect_request *conn_req,
330 struct cflayer *client_layer) 330 struct cflayer *client_layer)
331{ 331{
332 struct cfctrl_link_param param; 332 struct cfctrl_link_param param;
333 if (connect_req_to_link_param(get_caif_conf(), conn_req, &param) == 0) 333 int ret;
334 /* Hook up the adaptation layer. */ 334 ret = connect_req_to_link_param(get_caif_conf(), conn_req, &param);
335 return cfcnfg_add_adaptation_layer(get_caif_conf(), 335 if (ret)
336 return ret;
337 /* Hook up the adaptation layer. */
338 return cfcnfg_add_adaptation_layer(get_caif_conf(),
336 &param, client_layer); 339 &param, client_layer);
337
338 return -EINVAL;
339
340 caif_assert(0);
341} 340}
342EXPORT_SYMBOL(caif_connect_client); 341EXPORT_SYMBOL(caif_connect_client);
343 342
344int caif_disconnect_client(struct cflayer *adap_layer) 343int caif_disconnect_client(struct cflayer *adap_layer)
345{ 344{
346 return cfcnfg_del_adapt_layer(get_caif_conf(), adap_layer); 345 return cfcnfg_disconn_adapt_layer(get_caif_conf(), adap_layer);
347} 346}
348EXPORT_SYMBOL(caif_disconnect_client); 347EXPORT_SYMBOL(caif_disconnect_client);
349 348