Received: by 2002:a4a:311b:0:0:0:0:0 with SMTP id k27-v6csp3834543ooa; Mon, 13 Aug 2018 19:31:37 -0700 (PDT) X-Google-Smtp-Source: AA+uWPxGzExF0fG9G/Vp7JYyXo+ilJtFiw255TEf1Hu05Iev8TjuVGAHUbMYyYhTwLxAzSeVtDmY X-Received: by 2002:a63:d54e:: with SMTP id v14-v6mr19545796pgi.264.1534213897388; Mon, 13 Aug 2018 19:31:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534213897; cv=none; d=google.com; s=arc-20160816; b=OGFBxUEia3SOKd/lDTCYqy7fmxVdDHGrIMn7EKmsZh4iGHLCsApsWhiA6fqrjFMgfR C/hcgLPGbYv81j7W8GClDg+urZLEU8OLJKKndXsTDz4I4+K8fv949TprKV3j7CamLtYQ zuhQxT5xdOcx8huGYdZXk/8lIlFOWzTO/ppG77CSZvjq7uUzc7fCx5l96wigOa7Y/otb cvAX/wIGszi24TViQhupwOTXshhvk75Hfqlbs8cY0qjxafDhMyJIbLn45kQ+F8rtDrrh ChrwF02sPKX+uWI5VZS3cV477UJ2ZQbiju3mdpj0dE9eJSUXlCjHQcvx0v4dI0hfZEGL JWFA== 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:mail-followup-to :message-id:subject:cc:to:from:date:dkim-signature :arc-authentication-results; bh=T0sAzYYEiGAbSU9nPCHq4iLqLijsTNolaiMPj330aaQ=; b=KlNeoC54dzNzlqdblD8vNR6Jl1c1XmfWp9/CgCuSJXtI4uJm/TgkulMmTTBbU2Shyw ImHslJ7fa4EsVCuoJrRYX0wkuySSEN0qasTFPJRY8qY4qpX9xQg4clVWvsuR0TpNmp1D t/tS15BFCfgD+8OVyKgpLmWrwYpQjKIlWbpliM70BA2dJI66Y4F4KkIyRiBBzlS7dOC2 wAq866kxj/ePFodjg2zeFpRYgEAa0vsTJ6yWrnPopAZWC6soAPZw79ErtBEGFXVFp3qm FKoWiCQrGgOAe/nRt6fZfzf+ihFpA1yQPCJA1ZDXozClkiV2CWKLtNVJGx5b90ZwW74P NGZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=SpJ4uBey; 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 n14-v6si19725413pgk.276.2018.08.13.19.30.55; Mon, 13 Aug 2018 19:31:37 -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=SpJ4uBey; 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 S1729443AbeHNFN3 (ORCPT + 99 others); Tue, 14 Aug 2018 01:13:29 -0400 Received: from mail-pf1-f194.google.com ([209.85.210.194]:38763 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726079AbeHNFN3 (ORCPT ); Tue, 14 Aug 2018 01:13:29 -0400 Received: by mail-pf1-f194.google.com with SMTP id x17-v6so8551292pfh.5; Mon, 13 Aug 2018 19:28:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mail-followup-to:references :mime-version:content-disposition:in-reply-to:user-agent; bh=T0sAzYYEiGAbSU9nPCHq4iLqLijsTNolaiMPj330aaQ=; b=SpJ4uBeyz8EMFFC27+t0T7+aCSrUppLWiL9aqfYpwwaNPmAuL1ppy2MULCOifS70c7 0FTK/vaqlvz7V96JjD/JG0CnORvmus5yXy7tJRUbLl6nfv8oGMES8nKTEdSSQBd9RBtf hCRtghonSf+yUCBampgx1Gs7oIyZ1xftgY1QnwKpYCaKIOmliM4JBJ0V6FXnoRSXEHuG dWF9BnshA8yQYhbYh6Bm+JtEStpIcLgTBBqojrr6uJqtrcATFcbK86niU3Iv22qCOnrp 2HbNK9xhpN69ZQwul2qsFDdfuJHQUHeBOyhXK7PnvFmA2ZNw31eWMjUmVcDFK7ZVZZhk 8HzA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id :mail-followup-to:references:mime-version:content-disposition :in-reply-to:user-agent; bh=T0sAzYYEiGAbSU9nPCHq4iLqLijsTNolaiMPj330aaQ=; b=AmJ9ah3OlcZYX1VT2HLGDS6rFTnBfB5L2UlG72Ab6YW1yKe+iJAPnWaZFMnHse/gGd TF8lF4DdP7g0O0oBLmjxqDI525rcFqvCGxuTXU7zcrnAMVWSGaAaeF42hcKny3lx0Kgv VYal3h3rgIkIXduJPjETS1izNbYWIjA0KdYCQsI602HjxTYEmLxJAuIlmq2SJEWNfhH0 O/SU5JOiTj+9ksy3lVG8z73bq/0fIV/wFvpVzRnueXkI17cB1UzmG0ztZ3O7CFZ4OcRk igxXycCrzt5+1JDsxt1iiSGnDMevVdcC+aHtC3f/0zrtr1d0Q87dIaKSWKy7mM3zfbzV b0hQ== X-Gm-Message-State: AOUpUlEuhvUv9z5oDY2JE+BJMZzYw/UCsOVV9DWnb75fnI6EEurMO/q3 sLVokpguCZdCxd3sJFWs82c= X-Received: by 2002:a65:6699:: with SMTP id b25-v6mr19344362pgw.426.1534213709982; Mon, 13 Aug 2018 19:28:29 -0700 (PDT) Received: from linux-zmni.apac.novell.com ([45.122.156.254]) by smtp.gmail.com with ESMTPSA id g5-v6sm18915575pgn.73.2018.08.13.19.28.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 13 Aug 2018 19:28:29 -0700 (PDT) Date: Tue, 14 Aug 2018 10:28:24 +0800 From: Sean Fu To: Coly Li Cc: kent.overstreet@gmail.com, linux-bcache@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] md/bcache: Remove NULL check. Message-ID: <20180814022824.GA19644@linux-zmni.apac.novell.com> Mail-Followup-To: Coly Li , kent.overstreet@gmail.com, linux-bcache@vger.kernel.org, linux-kernel@vger.kernel.org References: <1534153129-24869-1-git-send-email-fxinrong@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 13, 2018 at 06:00:11PM +0800, Coly Li wrote: > On 2018/8/13 5:38 PM, Sean Fu wrote: > > Remove unnessesary NULL check before kmem_cache_destroy() in > > drivers/md/bcache/request.c > > > > Signed-off-by: Sean Fu > > Hi Sean, > > A same change is posted in my previous checkpatch fixes series. You may > find it from, > https://git.kernel.org/pub/scm/linux/kernel/git/colyli/linux-bcache.git/?h=for-next > > The identical patch is, > https://git.kernel.org/pub/scm/linux/kernel/git/colyli/linux-bcache.git/commit/?h=for-next&id=26b39d0732955ecb839d0afe8d6211d70f213384 > Thank you for your reply. Sean Fu > Thanks. > > Coly Li > > > --- > > drivers/md/bcache/request.c | 3 +-- > > 1 file changed, 1 insertion(+), 2 deletions(-) > > > > diff --git a/drivers/md/bcache/request.c b/drivers/md/bcache/request.c > > index ae67f5f..0ddee35 100644 > > --- a/drivers/md/bcache/request.c > > +++ b/drivers/md/bcache/request.c > > @@ -1306,8 +1306,7 @@ void bch_flash_dev_request_init(struct bcache_device *d) > > > > void bch_request_exit(void) > > { > > - if (bch_search_cache) > > - kmem_cache_destroy(bch_search_cache); > > + kmem_cache_destroy(bch_search_cache); > > } > > > > int __init bch_request_init(void) > > >