Received: by 10.223.185.116 with SMTP id b49csp1040471wrg; Fri, 16 Feb 2018 11:18:12 -0800 (PST) X-Google-Smtp-Source: AH8x227q6iD0fFFxm//vr5edM2RCmNu2JGTjEVvxjAwf+rKCaaUMsPQ9zbeXg1kgYKBYRG5emMug X-Received: by 10.99.127.90 with SMTP id p26mr5992575pgn.268.1518808692519; Fri, 16 Feb 2018 11:18:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518808692; cv=none; d=google.com; s=arc-20160816; b=ZyJQk6BP/Ad21uHUrK4K/uGoAVcBNugtYKqoYCI9qA7WxHOQKojt7kB/rd6rdCBzFs mDxIJbL+gFoj494aRLFlcrvb31hdZzm2lEqW5arYqc3hXwN+MDsGllIM1eDIMP9TazE3 PLE4diVSaFVHdkRuDcHxQaXL9UeTiVQLWNjU8ukWrQ+b6TaU8xelVEN7rnt//XPKq0FQ GMcfqZxZV4jIqntDwNhbCXzbRzrnIaQuWRWKmisD+qD8Ob4+f8mZg83q47fyw7fO3YuA bu9jYgVVXiB0LKoWZarvP14uEt4K44y0MCdeZtpA2xp2JXqRWXzyfVNWJ018W73W3tQZ 9P+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=tFC5VeRC0/sn1ZRdHL+uXqp3JvInplCLMYl1CkqUfRo=; b=TVSPrT5l3sWokXCyoEFR6igr3hltwfPN9TynHlaW0r0TirwtFMACIQSRj7ItfPNHrU Ij4Suf4gS99r6Jk9Ed5BPXBvMT1jHtDLEviNCorKAyT3Sfb1Av+VRzXC7+nSx1E/oV0Y hUeB5upl+wiIXC71egMEDcB7+6UH1jo0riC2z6xNYnsywE9QtjX3HcHChqhCt+OjjM1u ULpx+teyH8UZmw7S+oVkebLQzINfim0Gd4yiv9W/iiLPZWkLgbIDzfaJkou4Zs6/tawQ vHItMEbxP+4qpHHuZBvSob/MargLknoBra3MuPHR+k36X1c4qlJ1Ci9kDYeSdGJG++y4 RfZQ== 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 q22si2519557pfk.225.2018.02.16.11.17.57; Fri, 16 Feb 2018 11:18:12 -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 S1758526AbeBPQ15 (ORCPT + 99 others); Fri, 16 Feb 2018 11:27:57 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:50526 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751090AbeBPQ14 (ORCPT ); Fri, 16 Feb 2018 11:27:56 -0500 Received: from localhost (LFbn-1-12258-90.w90-92.abo.wanadoo.fr [90.92.71.90]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 51B37EA9; Fri, 16 Feb 2018 16:27:55 +0000 (UTC) Date: Fri, 16 Feb 2018 17:27:56 +0100 From: Greg KH To: Yisheng Xie Cc: labbott@redhat.com, sumit.semwal@linaro.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 5/9] staging: android: ion: Remove lable debugfs_done Message-ID: <20180216162756.GB18688@kroah.com> References: <1518432194-41536-1-git-send-email-xieyisheng1@huawei.com> <1518432194-41536-6-git-send-email-xieyisheng1@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1518432194-41536-6-git-send-email-xieyisheng1@huawei.com> User-Agent: Mutt/1.9.3 (2018-01-21) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Feb 12, 2018 at 06:43:10PM +0800, Yisheng Xie wrote: > 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; > - } Again, does not matter to check the return value of any debugfs call. thanks, greg k-h