ChangeSet 1.2199.8.29, 2005/03/22 18:46:25-08:00, [EMAIL PROTECTED] [NET]: Remove redundant NULL pointer check before kfree in socket.c Signed-off-by: Jesper Juhl <[EMAIL PROTECTED]> Signed-off-by: David S. Miller <[EMAIL PROTECTED]>
socket.c | 3 +-- 1 files changed, 1 insertion(+), 2 deletions(-) diff -Nru a/net/socket.c b/net/socket.c --- a/net/socket.c 2005-03-26 17:16:22 -08:00 +++ b/net/socket.c 2005-03-26 17:16:22 -08:00 @@ -993,8 +993,7 @@ sock = SOCKET_I(filp->f_dentry->d_inode); if ((sk=sock->sk) == NULL) { - if (fna) - kfree(fna); + kfree(fna); return -EINVAL; } - To unsubscribe from this list: send the line "unsubscribe bk-commits-head" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html