Received: by 10.223.185.116 with SMTP id b49csp1786222wrg; Thu, 22 Feb 2018 03:09:14 -0800 (PST) X-Google-Smtp-Source: AH8x2268xe5cizLtR8mqnPeg4LIFACC2DFLZ+MLkLWM5gE+diD/bIa77RGWdXvfn4gU1jeQIB98f X-Received: by 2002:a17:902:ad0a:: with SMTP id i10-v6mr6205875plr.130.1519297754676; Thu, 22 Feb 2018 03:09:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519297754; cv=none; d=google.com; s=arc-20160816; b=RsA3E4ARJfD6GXRbkkA64pQtEwPjaCcInyWVbNz4QUiHnAK73rsVjVi7TyjMblmTQp aiX8DpxAgpVq4vUHBRa0aH8zEVVtMjrrD2UzAnZbwyZLfKAiOeprUWgzek59HX5WmuqR X0lsz6pFOWuCns+aXLChpQsNUVv5rYRZ6ArCrOy44zogFafpMv//mCDzVF7ZM0Trgng7 hbMfT98GtRMZy2Ap7B0w9v1TSHz8O5i3T+EA3h7gAtmjLGCIO8F0SeueoUU/SCorWxAA Kt3iGYyHnh3S7kZyotU+i0WaffBQROGHvog5CuNsxDfQ5/EvB+2sfco5tjjiUIOnbxin /B3w== 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=c3QtetPpQCMpyQ7Ohwz0P/rkCbWRr76lO3QSJaIsWzA=; b=eVLbRNUxp+sLQdwf/R+0X98mPPyg6AcsSZvIQFqkHhXDD2BwNQEXVpLkFxhsCEJ/H1 3dqDvzvJr4GDhbfxruurUMSy4UYIPlyzCsC+YCpuP8DSuQkQguZlipE/35aPTfw5T4BT z4no1/vuX8wgiLGa2eYM8Vw2QDQLW77OgIUwdr7OKC/qr2W6jyPCXxQB9E7QM+JD1OnV 6upBQ87LlB5kx6ATLR7mZmRkGKMx0mibdszLXRJwUGRq6ciRXuqqWuBN2G3+lffVnjW6 2hmtol+L8t7wi7VeMGz/5YMITQNf+ltlMR23UeCIO8VJmxgT7Twn+BzHQrFCA6l4IHU2 gMog== 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 v3-v6si1489596plb.522.2018.02.22.03.09.00; Thu, 22 Feb 2018 03:09:14 -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 S1753544AbeBVLIR (ORCPT + 99 others); Thu, 22 Feb 2018 06:08:17 -0500 Received: from szxga04-in.huawei.com ([45.249.212.190]:5660 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753279AbeBVLIQ (ORCPT ); Thu, 22 Feb 2018 06:08:16 -0500 Received: from DGGEMS413-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id A53E51C3185D5; Thu, 22 Feb 2018 19:07:59 +0800 (CST) Received: from linux-ibm.site (10.175.102.37) by DGGEMS413-HUB.china.huawei.com (10.3.19.213) with Microsoft SMTP Server id 14.3.361.1; Thu, 22 Feb 2018 19:07:51 +0800 From: Yisheng Xie To: CC: , , , , Yisheng Xie Subject: [PATCH -next 2/2] staging: android: ion: Remove check of idev->debug_root Date: Thu, 22 Feb 2018 18:58:40 +0800 Message-ID: <1519297120-26308-2-git-send-email-xieyisheng1@huawei.com> X-Mailer: git-send-email 1.7.12.4 In-Reply-To: <1519297120-26308-1-git-send-email-xieyisheng1@huawei.com> References: <1519297120-26308-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 We will go on initial idev if failed to create debug_root, and it does not matter to check the return value of this debugfs call, just remove it. Signed-off-by: Yisheng Xie --- drivers/staging/android/ion/ion.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/staging/android/ion/ion.c b/drivers/staging/android/ion/ion.c index 0606d50..e74db79 100644 --- a/drivers/staging/android/ion/ion.c +++ b/drivers/staging/android/ion/ion.c @@ -585,9 +585,6 @@ static int ion_device_create(void) } idev->debug_root = debugfs_create_dir("ion", NULL); - if (!idev->debug_root) - pr_err("ion: failed to create debugfs root directory.\n"); - idev->buffers = RB_ROOT; mutex_init(&idev->buffer_lock); init_rwsem(&idev->lock); -- 1.7.12.4