Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2236664imm; Sun, 9 Sep 2018 19:48:12 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYQ1Swt9cpXFA4np6ZIHOPTOZ/zFiLc5JGKqlHaVnEbJBez4IEZT+bGb2uh/ln8HpGyrUfi X-Received: by 2002:a17:902:b282:: with SMTP id u2-v6mr19048929plr.123.1536547691964; Sun, 09 Sep 2018 19:48:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536547691; cv=none; d=google.com; s=arc-20160816; b=NlHZbn1juSUvQMYFeAcJFQydxuR6IVkwjFTNQbSYJM1RyiZ8uTskEqENqlUS1ltFou 25Cy7xj/K4Bg/HlfxNy+nrUffIGyq0F1Sv8WYJ3UErqNwqwGZMiJGTjfyq8PSUNKSG3P w6/9fODkPLWPaCXRx449XC7JsTG3CqcZCKmlhg6xeS/4PhdLQPYe6Mhd9aXUJ4rWkkkV X0BbDSq7k79rkm7HQFTfaDm1nhlO5qxOi3F1MRF5TdnakGrbjRdH0i4jVZ8nSuQPcvgb PwUu8iQRpoYsff4dWim+oDtQZlsapM2rNyi2u1o+LVCcyC+rNg3vxibS+pp2iN5RKN8G 8aJw== 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=dQMPIv+2SRQooSqf2f1FtIXbctKsHqkGdT0UqymyeDk=; b=WPWFn/yUK8ueIPVUbr5cE8V7hu3reNhRxe6M9HjHZAvqMNdEnl88lVNVxrcTahSEBr M7EJ3X17JuaafclQB1U52YDcspq3VWyvp6lyj99kCqsnnWHGXvf0jmKuO4S5tdc0neDE UfIyfEe0igNaRUX+GNkHZsgnbWxOXcxu+zHdEVr6Eq4dRZyVk0EyiGAfF5jQjK+lyc4t 7Z8ef5mMwXjT8MSILJAS4N/t2VL3e5MPQZoi/hm63fsYcx5IRM+WROCfBKVQEinP2RkD aDTS2wvDC7395YBe7PBz60eJPWAP2nbf2a5kCyIOMlzALgXwqsNoBx+jVyUNo+3h5YYj 4Caw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=nR0LicQJ; 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 b5-v6si16595221pgd.54.2018.09.09.19.47.56; Sun, 09 Sep 2018 19:48:11 -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=nR0LicQJ; 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 S1726832AbeIJHh2 (ORCPT + 99 others); Mon, 10 Sep 2018 03:37:28 -0400 Received: from mail-oi0-f65.google.com ([209.85.218.65]:46299 "EHLO mail-oi0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725960AbeIJHh1 (ORCPT ); Mon, 10 Sep 2018 03:37:27 -0400 Received: by mail-oi0-f65.google.com with SMTP id y207-v6so37280884oie.13; Sun, 09 Sep 2018 19:45:44 -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=dQMPIv+2SRQooSqf2f1FtIXbctKsHqkGdT0UqymyeDk=; b=nR0LicQJROW/+opF2t9jlpcF0r9X7WrQrFG+5ufNBsvJkPZ1jPBTNpgj4gBlnKnJBb g0qKNPnY5aoZx71cYBrDsRhJLa3vlVLJ36SNzPayLbNb1uN1UhhFdl3ptlg+cXv/F5AY YLb7FcRhCEnNhnVSafdn4YtEAr/1TnjHa+TO3HLl+B3BzedUjlzZhdt02Mcqj0Nf6nlr LlexBksO63ZDsFue4199Kz7p3Sr1N6JcRWLiywW/qADj3wYJlSDWML6HJIvD8vemfcx5 9sj7LtPxsBaLs1oOGZTFsIBB217dZ2Gv12Wy9BKflLqkQuzgLlgZeJzIBN7BR1TcHGWI S2VA== 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=dQMPIv+2SRQooSqf2f1FtIXbctKsHqkGdT0UqymyeDk=; b=BCeS/gWhuUrF0Tt4sWaTJC2bQslatX4emADJfCHLZl1AebbTSCN8qb4VilrvXIA/q2 +tB492TqAhOyr1gnVldhimEB+GdpFmyNw1GaiHFeiM07diR+e0VwnmjJYoklIBJscLna sEIQQI69v/dJZhN0105OD1bkI4mf2ivXKwRVCnzly3X/nJF7wDqUG/OZWeioPFPRQsh1 jg8gzdCLeyniMygVoNbjdCGQeFTlNmkRTAEqW/bUMy9n/YTPY5gTuY4b+R7Glz6eHIHF SFGOJXd/Fp5Rmxo6h1TLS/cUXZdAJ9kLWFuuRGpKxV2Cdu6Au+6GJhCVHzbxxtCqUdL1 +6Tg== X-Gm-Message-State: APzg51ATydhNgI62CmPRrbyQja09xUsCZPvg6zKQtclY7G+BLzNIjIJX lRXARi+4Or0ypkpEgXzHtyGFRNUpV3uU7Hjft+UcFyw+ X-Received: by 2002:aca:6087:: with SMTP id u129-v6mr17778821oib.99.1536540601007; Sun, 09 Sep 2018 17:50:01 -0700 (PDT) MIME-Version: 1.0 References: <1536411327-30127-1-git-send-email-zhongjiang@huawei.com> In-Reply-To: <1536411327-30127-1-git-send-email-zhongjiang@huawei.com> From: Junhui Tang Date: Mon, 10 Sep 2018 08:50:11 +0800 Message-ID: Subject: Re: [PATCH] bcache: remove redundant condition before debugfs_remove 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:08=E5=86=99=E9=81=93=EF=BC=9A > > debugfs_remove has taken the IS_ERR_OR_NULL into account. Just > remove the unnecessary condition. > > Signed-off-by: zhong jiang > --- > drivers/md/bcache/super.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/drivers/md/bcache/super.c b/drivers/md/bcache/super.c > index 2d26f9e..a3d2a94 100644 > --- a/drivers/md/bcache/super.c > +++ b/drivers/md/bcache/super.c > @@ -1506,8 +1506,7 @@ static void cache_set_free(struct closure *cl) > struct cache *ca; > unsigned int i; > > - if (!IS_ERR_OR_NULL(c->debug)) > - debugfs_remove(c->debug); > + debugfs_remove(c->debug); > > bch_open_buckets_free(c); > bch_btree_cache_free(c); > -- > 1.7.12.4 >