From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755055AbbBFGwR (ORCPT ); Fri, 6 Feb 2015 01:52:17 -0500 Received: from smtp.codeaurora.org ([198.145.11.231]:38540 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751572AbbBFGwP (ORCPT ); Fri, 6 Feb 2015 01:52:15 -0500 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: hostap: Delete an unnecessary check before the function call "kfree" From: Kalle Valo In-Reply-To: <54D26EA9.6020301@users.sourceforge.net> To: SF Markus Elfring Cc: Jouni Malinen , linux-wireless@vger.kernel.org, netdev@vger.kernel.org, LKML , kernel-janitors@vger.kernel.org, Julia Lawall Message-Id: <20150206065215.544AF140CED@smtp.codeaurora.org> Date: Fri, 6 Feb 2015 06:52:15 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > From: Markus Elfring > Date: Wed, 4 Feb 2015 20:06:39 +0100 > > The kfree() function tests whether its argument is NULL and then > returns immediately. Thus the test around the call is not needed. > > This issue was detected by using the Coccinelle software. > > Signed-off-by: Markus Elfring Thanks, applied to wireless-drivers-next.git. Kalle Valo