Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2226634imm; Sun, 9 Sep 2018 19:31:10 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbIIcMPYmFvI+q3gaMV5xBXkICj8nITYSXZcrd+LLNkVmFLl5a9tYP6NL87xFvXvUPT7VJn X-Received: by 2002:a62:5302:: with SMTP id h2-v6mr21360956pfb.183.1536546670168; Sun, 09 Sep 2018 19:31:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536546670; cv=none; d=google.com; s=arc-20160816; b=t90D303EwfNUGn6UcsBzJBSWYQp8YRYfKUpjWybSq4QdGb4/zJDgl68aDrVocRkWeL dnQgsbAJHnIQuNd9uMcAbBOV3b3X05xfghNPc18/H8rbXuq66Dbhbc6wubhXLfjBulLr kgxoS+GXgIZmZcByeHK6MbGs+gsbioFLXcaa//D0JwIknEM9lYU0471w6Dc1gwlIDh26 PLOc8f/ZIIEMrgHJ6BwfS3ncXqgsQxWiGDFoyYoFU8NRIi4YuoLxr9vtK8NA5gM6H/oi TcfwK1LEWuCmxE4sKKiSj8FZGNibcKq3IDS26Hz/yH3KbJKAZEdf32OlrW4LwNR3yfBU hcNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=OZEnTt9PuEdybCuk6NytBr5+HNU3iL3f03dR7n/UH20=; b=VUG55QpQVv7BDfOxh0qdm6zvGr1c5dgzDsHMdFVKEuHqWcycNJlM/b/CJAHI97eJxa coDEtbnN3VR9W+cYaziXBgjL5edGi5qJzJoEfi6lelJwge9QcfVL2h0j+ffez4jciJD9 O7omE02fsuGc+6zCMjSeYt5lKVqARgUJJ7PI6E9L76dWtE4Wx4C0NMcw7mFkEDu0x+sI k5vslcnXGeQkJpYHE2CS5tSK4+/yXpv4KaBhC3647MFPTJwtPSov3d2ZzJVMpH5jyZac kZjUrAVFLsRbr0/0/d5AH51UwVewYlMVOAxpmz7nhvoy6u+XxaxdII6LLJIf+wm3t7Bp kHOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Dty4Z8Io; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l30-v6si15751567pgn.238.2018.09.09.19.30.53; Sun, 09 Sep 2018 19:31:10 -0700 (PDT) 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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Dty4Z8Io; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726165AbeIJHVS (ORCPT + 99 others); Mon, 10 Sep 2018 03:21:18 -0400 Received: from mail-oi0-f67.google.com ([209.85.218.67]:38885 "EHLO mail-oi0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725906AbeIJHVS (ORCPT ); Mon, 10 Sep 2018 03:21:18 -0400 Received: by mail-oi0-f67.google.com with SMTP id x197-v6so37310493oix.5; Sun, 09 Sep 2018 19:29:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=OZEnTt9PuEdybCuk6NytBr5+HNU3iL3f03dR7n/UH20=; b=Dty4Z8IonQqooLwJcwUrnlO5fzMuIdK0mH6KN5DEcrO3k27Jcab0QSTCvAZru+da8T kMe9DJqea0zrl2p1O5sYMN89VIrdfN9Ul4WjaKpJTFnNDYYwNs4bUXrbGvmXkah1bxwR djcftzw9usg/oTwta12//yvoXnbs8ZqmQagGTaW+gT2OQ5IfhTdT9CvCG6hnl6ZgM4Q9 FN4P1B6YpX92p/TsGhMXMIZcUZzOqT+OY/psJPFNqDO5zGHNkzwhom1ElRoi6pmP69K7 GfnvHXx6Gzqg6rJj66i5kbVCBbnCoFetH3ELf76ehQ3am0vmuEEI/AXbd5vpJnaAN5sr ifyA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=OZEnTt9PuEdybCuk6NytBr5+HNU3iL3f03dR7n/UH20=; b=jR0W9fP21rI5LctHjg0WgSULvrs0STG0W/aVedmUtCc+lbSzTQO1KJoXUon5w4CZcQ OvdEp7SuFE1XNQ8bwvaww4v/TLdAEN9oJvZf+CSIsfYQWlG928zxFvw4RMExTW2EKAKE buz+wGq8OlXjgYyzUtr5DT8zNgX0KdYoChlcdtoEKY3T0nPuxxFp59DYo1qxQCqIjskP V+IU6ufMr5jwfFvnuHC/sxp7urYs45C1Y+xlajBhImAC+zU+UAGb+5CW48eR0Lvhe0Rt X1RTsvuSLS7FkZ2406qqZ22wANyfeoYvBAUquLnRyEbtOBBpV3yAbhXHrx0Fpi2zKzwB Wflg== X-Gm-Message-State: APzg51C+I2XCZvt0Gsc+0jxsrEL+0wqhasBPSR8W5YboyRyhd/3gHO+h qG4uw2wuF/78EMvoqwrPPFrm7aPjs0r6a9XGOG+62sNC X-Received: by 2002:aca:e643:: with SMTP id d64-v6mr20297239oih.81.1536540618345; Sun, 09 Sep 2018 17:50:18 -0700 (PDT) MIME-Version: 1.0 References: <1536413350-31523-1-git-send-email-zhongjiang@huawei.com> In-Reply-To: <1536413350-31523-1-git-send-email-zhongjiang@huawei.com> From: Junhui Tang Date: Mon, 10 Sep 2018 08:50:28 +0800 Message-ID: Subject: Re: [PATCH] bcache: remove unecessary condition check before debugfs_remove_recursive To: zhongjiang@huawei.com Cc: colyli@suse.de, Kent Overstreet , linux-bcache@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org LGTM Reviewed-by: tang.junhui.linux@gmail.com zhong jiang =E4=BA=8E2018=E5=B9=B49=E6=9C=888=E6=97= =A5=E5=91=A8=E5=85=AD =E4=B8=8B=E5=8D=889:41=E5=86=99=E9=81=93=EF=BC=9A > > debugfs_remove_recursive has taken IS_ERR_OR_NULL into account. So just > remove the condition check before debugfs_remove_recursive. > > Signed-off-by: zhong jiang > --- > drivers/md/bcache/debug.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/drivers/md/bcache/debug.c b/drivers/md/bcache/debug.c > index 06da66b..8c53d87 100644 > --- a/drivers/md/bcache/debug.c > +++ b/drivers/md/bcache/debug.c > @@ -249,8 +249,7 @@ void bch_debug_init_cache_set(struct cache_set *c) > > void bch_debug_exit(void) > { > - if (!IS_ERR_OR_NULL(bcache_debug)) > - debugfs_remove_recursive(bcache_debug); > + debugfs_remove_recursive(bcache_debug); > } > > void __init bch_debug_init(struct kobject *kobj) > -- > 1.7.12.4 >