Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751625AbdG0QJq (ORCPT ); Thu, 27 Jul 2017 12:09:46 -0400 Received: from mail-it0-f67.google.com ([209.85.214.67]:37473 "EHLO mail-it0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751595AbdG0QJp (ORCPT ); Thu, 27 Jul 2017 12:09:45 -0400 MIME-Version: 1.0 X-Originating-IP: [82.81.71.2] In-Reply-To: <1500557827-29853-1-git-send-email-sunil.m@techveda.org> References: <1500557827-29853-1-git-send-email-sunil.m@techveda.org> From: Gilad Ben-Yossef Date: Thu, 27 Jul 2017 19:09:44 +0300 Message-ID: Subject: Re: [PATCH] staging: ccree: Fix unnecessary NULL check before kfree'ing it To: sunil.m@techveda.org Cc: Greg Kroah-Hartman , linux-crypto@vger.kernel.org, driverdev-devel@linuxdriverproject.org, devel@driverdev.osuosl.org, Linux kernel mailing list Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 507 Lines: 19 Hi, On Thu, Jul 20, 2017 at 4:37 PM, wrote: > From: Suniel Mahesh > > kfree(NULL) is safe and their is no need for a NULL check. Pointed out > by checkpatch. > > Signed-off-by: Suniel Mahesh > --- > Note: > - Patch was compile tested and built(ARCH=arm) on next-20170719. > No build issues reported. Patch applies against staging-next + latest changes and it builds and runs. Acked-by: Gilad Ben-Yossef Gilad