netdev
[Top] [All Lists]

Re: [PATCH] net/socket.c : remove redundant NULL pointer check before kf

To: Jesper Juhl <juhl-lkml@xxxxxx>
Subject: Re: [PATCH] net/socket.c : remove redundant NULL pointer check before kfree()
From: "David S. Miller" <davem@xxxxxxxxxxxxx>
Date: Tue, 22 Mar 2005 18:47:50 -0800
Cc: netdev@xxxxxxxxxxx, obz@xxxxxxxxx, bir7@xxxxxxxxxxxxxxxxxxx, waltje@xxxxxxxxxxxxxxxxxxx, linux-net@xxxxxxxxxxxxxxx, linux-kernel@xxxxxxxxxxxxxxx
In-reply-to: <Pine.LNX.4.62.0503172028030.2512@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
References: <Pine.LNX.4.62.0503172028030.2512@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: netdev-bounce@xxxxxxxxxxx
On Thu, 17 Mar 2005 20:34:05 +0100 (CET)
Jesper Juhl <juhl-lkml@xxxxxx> wrote:

> kfree() handles NULL pointers just fine, checking first is pointless.
> 
> Signed-off-by: Jesper Juhl <juhl-lkml@xxxxxx>

Applied, thanks Jesper.

<Prev in Thread] Current Thread [Next in Thread>