Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp4123839ybg; Fri, 25 Oct 2019 13:42:31 -0700 (PDT) X-Google-Smtp-Source: APXvYqyvkok5wenCP6eYNdFDGEBjBOprfbwnq93H/GIH/3cMswqvvX9ahCmiYJU4M0kAHQ5dXeED X-Received: by 2002:a50:f783:: with SMTP id h3mr6142625edn.294.1572036151176; Fri, 25 Oct 2019 13:42:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572036151; cv=none; d=google.com; s=arc-20160816; b=PJh95ePACnLtoahxDPy9ur4PvwHnEWHtaLqLC+rmdwY0B4I9xdZCv9ezF9VdDlw2rb cI8dI78ni/Vruj9iKSg5cyCrbtQWEdLfXTQ4kdxIHIF81Est+4/0AqU1IlviTs3y83pA 6Ln8QVF7Pi7irkeJPmK9lQULJCE19MjOXvwMRrmjaY5JK27ySWnqrcEXGX9CiEx9aweX gTrM6T+Yp/BulE7hz//RGBgYa5C3/3sZ3lWTX4CWV2U4Dkjeb9q2e0lQeyrjKSHYmKvC e7N9MqA1iDVeSWRZT+LZzp8MbGSdhnfm5mDenoVSzC4p6kaln6o6HW40EREX6FVI92VP Ypow== 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=sS3PYP7sb7nZeexvyG7CuYvg14FuVX9+0KxUSPIEzcs=; b=hrTJHy3IFUO8eg9joleNR2rx2x1s6T1h/5wgEQQmQopGnQj5Z0PWK4kdrpRZXnqdWr JIAhSZ1YMZG3ywq1JQ9DYshUeGjLOPAZWv9c7lqF+cHhe6KhmlcanKFCJsg7HzqTdqE7 2k31IbErDEsKWHZyrsl9SCd2FSD0ZektG1poI07BhK8c3Pdfiyj4AzNPMftheAjzZ9GB Ucku0PhJNpM9yJquXfWJf7vB5ZJNDAEi41a7Rc2CvYzHXdN4DnyenrzpDX7z/Nhzd4wb E+M6zWVABiSY4t0wU79O9j2/eQ0NwIjIhHoKo368S9lF/nQPg1FfMdg2XkAShbAEo2cj 7ojQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@paul-moore-com.20150623.gappssmtp.com header.s=20150623 header.b=VwfW1KxA; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f24si2061410edf.15.2019.10.25.13.42.07; Fri, 25 Oct 2019 13:42:31 -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=@paul-moore-com.20150623.gappssmtp.com header.s=20150623 header.b=VwfW1KxA; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2395532AbfJYPzM (ORCPT + 99 others); Fri, 25 Oct 2019 11:55:12 -0400 Received: from mail-lf1-f66.google.com ([209.85.167.66]:37093 "EHLO mail-lf1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388846AbfJYPzM (ORCPT ); Fri, 25 Oct 2019 11:55:12 -0400 Received: by mail-lf1-f66.google.com with SMTP id b20so2172872lfp.4 for ; Fri, 25 Oct 2019 08:55:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paul-moore-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=sS3PYP7sb7nZeexvyG7CuYvg14FuVX9+0KxUSPIEzcs=; b=VwfW1KxAddVtUt5JxxIFhB1j5MYK1n5dRFc4R3VO/CRFd0eDr0VpBkjyzcYr4QYNkj LIBNEP/T58NdOhaWBLVpU326qFlLvC+zDFOkhHMb2DUPHmjHoDuMhsm+to9KZ4yL/qbN m/Re4JDkfbIXC428QMJ59pVYZgp6SWgCNZvEEWG4xCyUNFXFQ5cIXFMaELnA4Kcqw7Bs 36lycD+7NVwtHBR/Pb+Q4JYWGJEBwFUpJEmfSJ8I3MLZ9YboRfCoYlcFXhv9w3q3swDm 5vjLhkePVx/QJr+mVONya5OrYUXzfHoB3lWh2Hb8kZ8pzwBNz0PxvsQrBLZFNTJrbFAj nodw== 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=sS3PYP7sb7nZeexvyG7CuYvg14FuVX9+0KxUSPIEzcs=; b=nPUTxEBvl069ssjrmPqyK4SMLzDzKhML7rRxlATGa4JJJ+aHAVxwOJcs+85/bevM4e LdBfzs/uoH0BvbHeNadJ3qW1Q/C306UAmNJmLT5vuqAnm0lKftPfqUK1X7WlGCZcGzB+ DLOUJz1TgX+z278WuLBJ7R8W6ST9xVIJei5BNYQd0obuYLX2YBbK5/vwwtqLhWD5F+2l e589Sf06hq6ARlMj16Qru1HilIMvFIptX/quIv1obUjEFAZJB6CakSIooAecgVJH6ZQJ FbluryvkbjBwcJLFEi39CwVUbrtMKQSyDpvrc2vxLMdeKQi1bFtbqU241tG3gzXDvOLi kOwQ== X-Gm-Message-State: APjAAAVvO7qGLrm9ePYQhYZ2bwvXZUbEX2pH0in0BONYtZPFg9rljgKR 3obKtK/gC22wywMJ9ecwcO0vhRaiTq8IKOxooVpT X-Received: by 2002:ac2:51b6:: with SMTP id f22mr3196445lfk.175.1572018910101; Fri, 25 Oct 2019 08:55:10 -0700 (PDT) MIME-Version: 1.0 References: <7869bb43-5cb1-270a-07d1-31574595e13e@huawei.com> <16e0170d878.280e.85c95baa4474aabc7814e68940a78392@paul-moore.com> In-Reply-To: From: Paul Moore Date: Fri, 25 Oct 2019 11:54:58 -0400 Message-ID: Subject: Re: [PATCH] audit: remove redundant condition check in kauditd_thread() To: Yunfeng Ye Cc: Eric Paris , linux-audit@redhat.com, linux-kernel@vger.kernel.org, hushiyuan@huawei.com, linfeilong@huawei.com 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, Oct 25, 2019 at 3:14 AM Yunfeng Ye wrote: > On 2019/10/25 13:43, Paul Moore wrote: > > On October 23, 2019 3:27:50 PM Yunfeng Ye wrote: > >> Warning is found by the code analysis tool: > >> "the condition 'if(ac && rc < 0)' is redundant: ac" > >> > >> > >> The @ac variable has been checked before. It can't be a null pointer > >> here, so remove the redundant condition check. > >> > >> > >> Signed-off-by: Yunfeng Ye > >> --- > >> kernel/audit.c | 4 ++-- > >> 1 file changed, 2 insertions(+), 2 deletions(-) > > > > Hello, > > > > Thank you for the patch. Looking quickly at it, it appears to be correct, unfortunately I'm not in a position to merge non-critical patches, but I expect to merge this next week. > > > ok, thanks. I was able to find some time today to take a closer look and it still looks good to me so I've merge it into audit/next - thanks! -- paul moore www.paul-moore.com