d7016935f9a2ae34c648c446e96b86af6d81e2d7
[openwrt/staging/yousong.git] /
1 From 367e360d68d9dfd7f1b213a47576139ffb6028c8 Mon Sep 17 00:00:00 2001
2 From: Dave Stevenson <dave.stevenson@raspberrypi.org>
3 Date: Fri, 8 Mar 2019 11:09:49 +0000
4 Subject: [PATCH 380/703] staging: vc-sm-cma: Don't fail if debugfs calls fail.
5
6 Return codes from debugfs calls should never alter the
7 flow of the main code.
8
9 Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.org>
10 ---
11 drivers/staging/vc04_services/vc-sm-cma/vc_sm.c | 8 --------
12 1 file changed, 8 deletions(-)
13
14 --- a/drivers/staging/vc04_services/vc-sm-cma/vc_sm.c
15 +++ b/drivers/staging/vc04_services/vc-sm-cma/vc_sm.c
16 @@ -681,13 +681,6 @@ static void vc_sm_connected_init(void)
17
18 /* Create a debug fs directory entry (root). */
19 sm_state->dir_root = debugfs_create_dir(VC_SM_DIR_ROOT_NAME, NULL);
20 - if (!sm_state->dir_root) {
21 - pr_err("[%s]: failed to create \'%s\' directory entry\n",
22 - __func__, VC_SM_DIR_ROOT_NAME);
23 -
24 - ret = -EPERM;
25 - goto err_stop_sm_service;
26 - }
27
28 sm_state->dir_state.show = &vc_sm_cma_global_state_show;
29 sm_state->dir_state.dir_entry =
30 @@ -720,7 +713,6 @@ static void vc_sm_connected_init(void)
31
32 err_remove_shared_memory:
33 debugfs_remove_recursive(sm_state->dir_root);
34 -err_stop_sm_service:
35 vc_sm_cma_vchi_stop(&sm_state->sm_handle);
36 err_failed:
37 pr_info("[%s]: failed, ret %d\n", __func__, ret);