Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1873139ybb; Sun, 29 Mar 2020 15:53:05 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvtFujezHWzcgFxz/dk8UM5O2EKFEXBgPpae6zMsPv1GDZ6FhSXpGcxolpkIrGC6CuKe+Jc X-Received: by 2002:aca:f4d0:: with SMTP id s199mr6100933oih.109.1585522385695; Sun, 29 Mar 2020 15:53:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585522385; cv=none; d=google.com; s=arc-20160816; b=AhvKvH7J+uckAnkRvajVyhZwAZRY2RmLGLBcVny+Ci335vjFjP9XvdUcw1MDQBIz9a F3zyT4l6w1AWiwCiYK9Jb78ABx3/W/ZrcrsesRz/+k2IWxj0dtO2JPAUPuO/4V3ujXr4 2HYm3OiVgKt+EVzqSf2+HLZYBjbvSf58fpH9IzW6ncEtQMudmqpwYyZtQDANgGvDCN+k NaER+D8Jy6jSppa25nAWh2rgorTo3paJxiX5RMCz6dvHt5u8b+6v4ZaWjp7Tf1apklwo mmlCQ7wg9uT50iPMz1rSep0gbjWBp6kuupExNDYtz1CqWPiefOWz5/SikIVpkTyxbqdQ pgIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=AdH+2Sp8+LCQmdv9cJRBn8nCYFyRth49aJu0RLYZRyg=; b=OWKzLEyXw1DXLltlsIfvZa4sX+33wvYsXMoOppsYU8AuLJ1BNxPbdLKokYCwSOkN+n mDBkXsdI6jq5ojeX/3GiwqXmdtttG5/arkoxVPzKpQb7jdMsrWvF2Rx8u47I+XLBim00 4+Va49hr6jSfJ9oXSqyjJJEumMka99vv2IbGYR2Cav5nudpCv2sMLnb/5q8jImAS10YO JPGyJCij01fkSSzob3TUY60O+wG+9aT8Fmg9mKQmUKdw2V60Uh6+lzrSyvhbiSwES3SY Wsy5ijYFIA1+aAvlOZNaFSjtQMCQd81E+7MpKpxe+YJlQp1HPZtXygvBEvIzzgvaZN5w hDJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=SKXvn45U; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s13si5911957otg.35.2020.03.29.15.52.52; Sun, 29 Mar 2020 15:53:05 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=SKXvn45U; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729177AbgC2V5o (ORCPT + 99 others); Sun, 29 Mar 2020 17:57:44 -0400 Received: from mail-wr1-f67.google.com ([209.85.221.67]:44563 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728966AbgC2V5n (ORCPT ); Sun, 29 Mar 2020 17:57:43 -0400 Received: by mail-wr1-f67.google.com with SMTP id m17so18862304wrw.11 for ; Sun, 29 Mar 2020 14:57:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=AdH+2Sp8+LCQmdv9cJRBn8nCYFyRth49aJu0RLYZRyg=; b=SKXvn45UOfjWlUjmdFc0n9z3vSowX79jBA3X7UhZI5XH/zK/HEwfMUu/NXfMnDFyxA w4tU3AGaTG5epfNu5vCpUzfWHtl5ejAo2Fr9AySqHpzpMBKrIzE9spVaNICgkjLv0wPW ql37IRwlmz5m+kZPZ5aYPd1UwDjNQEpNOLt1P+0h+1zLJSpjt8mxtjn83Eq0jqJvwxNb alZuo48lb4PEuU/BHSDtkHMWNyyLYCnMItSTpXtntGEyz3XID8qpJ9IyD25An5QLWk/j gIN5Xn0Zi3lLoMdEkCW44GCTz6HRXNi0gVvULbWeKY5vLVzDW+gZYbZxJ1qiTfg4qNy2 vhSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=AdH+2Sp8+LCQmdv9cJRBn8nCYFyRth49aJu0RLYZRyg=; b=P52kqSZtJuDOJcj19ZPIM5zPpetzvxjYO1xTrPMG36EGMOMXVViSVHe4oPYnVjsMIT HveT+x5qzQoll7V0xVoIrdlSFXAfVqUQhrrLE1CdcYGVNU46A6CH1Z2T1xN2gK6xKkUX HO/BJHUjBYXC8OnIGlFC0l19vUN12kgMHGR+Q4Y+EJ1cQhLHpiCLYjiXuFYHZHjV8R9b YAPKm8e2OUnDn945EWQBC+lylfkgV2MA6GKtwcmbmZ/BO24GhGoT3QStqxTxztca6pEN AZhU0vLa2HBr3fnfDpl2Obz2+OE78dmMYcsadm6tv8uuBR0c3Z2ehXIC24GAW4EaWDd2 BgNg== X-Gm-Message-State: ANhLgQ2HMJzghRZzPpw+6PkVXF9WwOX+TEhNrgr1nCoG/nTx4FXyrcfu gEy+i2kCh/HJnWNqu7Ob8WWiLLAIuXRPzARozy7g0hqh X-Received: by 2002:a5d:4885:: with SMTP id g5mr11055550wrq.93.1585519061682; Sun, 29 Mar 2020 14:57:41 -0700 (PDT) MIME-Version: 1.0 References: <20200327193626.82329-1-alex.dewar@gmx.co.uk> In-Reply-To: <20200327193626.82329-1-alex.dewar@gmx.co.uk> From: Richard Weinberger Date: Sun, 29 Mar 2020 23:57:30 +0200 Message-ID: Subject: Re: [PATCH] um: Remove some unnecessary NULL checks in vector_user.c To: Alex Dewar Cc: Richard Weinberger , Jeff Dike , linux-um , LKML , Anton Ivanov Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Mar 27, 2020 at 8:38 PM Alex Dewar wrote: > > kfree() already checks for null pointers, so additional checking is > unnecessary. > > Signed-off-by: Alex Dewar Applied, thanks! -- Thanks, //richard