Received: by 10.223.185.116 with SMTP id b49csp2130558wrg; Mon, 12 Feb 2018 04:59:57 -0800 (PST) X-Google-Smtp-Source: AH8x224EAsW9Bpim0/bY+TmCRlQ7Ew+UB5qjzofAZNrF41y1eKkSI1Fs8ffE5eMU3SSIeiAM71OM X-Received: by 10.99.139.199 with SMTP id j190mr3154876pge.334.1518440396939; Mon, 12 Feb 2018 04:59:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518440396; cv=none; d=google.com; s=arc-20160816; b=opRmjGlIx4V8ZvP20IVORNol3BwS0n6P0KokTIj/PLBW+kKS+OzOFKL2v8mpzh1njb TNcnMz+0FHPo+RaALf5/kePGm7pP+dIk5jMu60m6O32an5HqGVT+4IPYtcDVl8cWwRVZ fNIYPDQFT0jkCwx19tvZQCG5dDZL3RmXEHeQKsQ/SNgt7aWVxUKZiIgsZjmMbMRRWLXB 0VVNNt8qWkjphGG5zXPnYJ9wJKK+rRqi0Pyi3bOye7bktBOp5IGYcveVLyEurVxxdyD0 luiP7LUPju/85Ased+8zrxj6AxCOvLTJ4mzy105Yt+pdWbUvPSGp/IGwXPU2V8a7qSfF o1hg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:arc-authentication-results; bh=T6u5wkHaJxvY1q7WlsUfse3emnXfaBtrEWojRa5JwGg=; b=AtZtggBg9nZwnOdxBMZkQAOZefDzhUb2+ZFJ8SKvVFPlM33QS9bE53o2UFDe2lfgVk 7Tk92F6HZ12DfF1X8CpQBY9pFAz0wW3oT8iEfWezQXrp22G2L0ixfZa4TOACy6G5c5pk Roj0mGYOhMhrrpTlNLbt9u0101KHh9hRPGnIpfMAGb7R+8RHPypmqYVqAjS/LpLGNVFN MtG3FeS00obfJrj7MlZi8hniMQ2CZnJ0PHccGBs3Z/aNWtLAfUxtL+JHxgzFTVIjJqdg vPXiIfm/mJKaacDm38ew3TdJndBf0DXB/RTTmEScZD+vaVJ8t1ybNjjnaroqPeyL7Cgq 7mzg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l33-v6si2490266pld.692.2018.02.12.04.59.42; Mon, 12 Feb 2018 04:59:56 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933916AbeBLKxd (ORCPT + 99 others); Mon, 12 Feb 2018 05:53:33 -0500 Received: from szxga04-in.huawei.com ([45.249.212.190]:5200 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754084AbeBLKwh (ORCPT ); Mon, 12 Feb 2018 05:52:37 -0500 Received: from DGGEMS414-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 71606318718DF; Mon, 12 Feb 2018 18:52:24 +0800 (CST) Received: from linux-ibm.site (10.175.102.37) by DGGEMS414-HUB.china.huawei.com (10.3.19.214) with Microsoft SMTP Server id 14.3.361.1; Mon, 12 Feb 2018 18:52:16 +0800 From: Yisheng Xie To: , , CC: , , Yisheng Xie Subject: [PATCH v2 5/9] staging: android: ion: Remove lable debugfs_done Date: Mon, 12 Feb 2018 18:43:10 +0800 Message-ID: <1518432194-41536-6-git-send-email-xieyisheng1@huawei.com> X-Mailer: git-send-email 1.7.12.4 In-Reply-To: <1518432194-41536-1-git-send-email-xieyisheng1@huawei.com> References: <1518432194-41536-1-git-send-email-xieyisheng1@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.175.102.37] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org When failed to create debug_root, we will go on initail other part of ion, so we can just info this message to user and do not need a lable to jump. Acked-by: Laura Abbott Signed-off-by: Yisheng Xie --- drivers/staging/android/ion/ion.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/staging/android/ion/ion.c b/drivers/staging/android/ion/ion.c index 4b69372..461b193 100644 --- a/drivers/staging/android/ion/ion.c +++ b/drivers/staging/android/ion/ion.c @@ -595,12 +595,9 @@ static int ion_device_create(void) } idev->debug_root = debugfs_create_dir("ion", NULL); - if (!idev->debug_root) { + if (!idev->debug_root) pr_err("ion: failed to create debugfs root directory.\n"); - goto debugfs_done; - } -debugfs_done: idev->buffers = RB_ROOT; mutex_init(&idev->buffer_lock); init_rwsem(&idev->lock); -- 1.7.12.4