Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp318969imm; Thu, 27 Sep 2018 22:11:16 -0700 (PDT) X-Google-Smtp-Source: ACcGV61TrEJHXBDlNZDuWwm1sJMPC0whXtO/jc6taZjaHIExIV57xxFh03zUp2eQ47R1Yt67SZ89 X-Received: by 2002:a17:902:8681:: with SMTP id g1-v6mr14051112plo.302.1538111476023; Thu, 27 Sep 2018 22:11:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538111475; cv=none; d=google.com; s=arc-20160816; b=HSocGrFWek7U8c+2Rb03cJp2Z2KWk3ktlJ/lPih6Yr69DDxN6XD+GlD+z7g+B8BU7r aRR6q0vprF4UdOb4U/hRnG8orUTmgAXxnKQtI0hJrX/F5kPolv/wophPS1cI2HGb5pMp COck7l43eDYIsSxT6SGncFD9tZMOO/sMFF8VihN9xOEqGrkkryciWh50WRMXsnGfiBxG 1affVXQN5jMT/5DYj80hgew0duAFnrmp32raO2jZzpJiueMIhm9vI0uG+ZmSX+JJOa5J fI6d2CPwjFra+c5RkgXcomwhJB5SzAivNa2SbuF9QngrUaJJc2cq9lqAjoLBpmLhS6wE /4Kg== 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; bh=nNrnIrYVAEOtYCWivSoOvy5m7BewPsmlCYLfNelpXFE=; b=bRBcJwS23QxoxG8a317r6VDFc4NsWspp4vfDNknYoU1G0aBloI65ptnWirN/8p1Fz3 xtpSLCLOGkCNkg2Dkr2vKqF+RwlIShBT2blqee2pPxGiothMYBVBy3Rbl28yS3Mo4oiy CvzN6Xu8w81K141EQd4TXTi4we4wYNphKXtHNI5mZ/zbOu7wP31odh2LVghABMipsbRc 1SC2r3QD/sjkVpWFRQvpeUrvp7jo7X2bD51lL1NrT4CiUSLDNSPxPpU4EsIkd5+QqULX 2M8XkBq3hl9MkvhT9Hujp87prAGZ0X9Yo9/Rl2GB63g5WkI1hqCVXxMXQBAKLMwI/p4t fL8g== 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 r21-v6si3896444pgl.257.2018.09.27.22.11.00; Thu, 27 Sep 2018 22:11:15 -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; 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 S1728906AbeI1LcD (ORCPT + 99 others); Fri, 28 Sep 2018 07:32:03 -0400 Received: from orcrist.hmeau.com ([104.223.48.154]:42592 "EHLO deadmen.hmeau.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726060AbeI1LcC (ORCPT ); Fri, 28 Sep 2018 07:32:02 -0400 Received: from gondobar.mordor.me.apana.org.au ([192.168.128.4] helo=gondobar) by deadmen.hmeau.com with esmtps (Exim 4.89 #2 (Debian)) id 1g5l2M-000095-TZ; Fri, 28 Sep 2018 13:09:58 +0800 Received: from herbert by gondobar with local (Exim 4.89) (envelope-from ) id 1g5l2M-00061o-Bk; Fri, 28 Sep 2018 13:09:58 +0800 Date: Fri, 28 Sep 2018 13:09:58 +0800 From: Herbert Xu To: zhong jiang Cc: davem@davemloft.net, george.cherian@cavium.com, linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] crypto: cavium: remove redundant null pointer check before kfree Message-ID: <20180928050958.gpbgh7r2canffij6@gondor.apana.org.au> References: <1537536615-46814-1-git-send-email-zhongjiang@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1537536615-46814-1-git-send-email-zhongjiang@huawei.com> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Sep 21, 2018 at 09:30:15PM +0800, zhong jiang wrote: > kfree has taken the null pointer into account. hence it is safe > to remove the redundant null pointer check before kfree. > > Signed-off-by: zhong jiang Patch applied. Thanks. -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt