Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp748628pxj; Fri, 11 Jun 2021 10:25:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwNOl36ZOEy3sqdK/ZWI5GytfIBuW9TZi6Evg3kPJyMKkCaPKVVQUyVYz++iC3pRHhN51F3 X-Received: by 2002:a17:906:a850:: with SMTP id dx16mr4657472ejb.333.1623432346779; Fri, 11 Jun 2021 10:25:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623432346; cv=none; d=google.com; s=arc-20160816; b=GAXYPVT6K1PsPzLvTgXTwVgF3bhMC9yrTmOtv3fhjDoKTJviaPHGIvV37ThA8y4Vn1 cJMp7htSk/R3aYFPcqIdFGmv1X1NQmIw7KtcbmPXIDo0v/e91XmdMS8YIR9e9EdGZq51 7uhEfnzdZ9GKyLnPtOZdg5ev5WTQROftoa/i7uckppd83lBjLWcNHtanykjcMN9runV6 h5LbZm8bCSXUbBFFpXs9cBVw0O32x53pSxdHYBjFzNRrNvz884BdTkyJgDCUY9gDUu1p yLUStmHXUo1hdwXGW20F2zFMfrfKDTOSpPDxAsiQXJZLC/kaTpMwG8mCbH93Ja+t+dgK QB5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=pzkhQR4zj2j9hClx4qSj3DSk3XkJw57raw7U4YCqfCM=; b=zRPvUf1j2uMPcikCEvhHbj1UfQDKboY9PmdGNF3eLu6GGF/zeH7EiFY7q3ukS7KZPE nlw43Cj1FfQmLiWv24r8TofEYdwJpIk9bCZ+hcFq0rhfJX/L94kDRGfSmYzzZJCqO5PI 6iH0Ys7gM7z3anmG2cAkZZv3536aQXB+yIt54OM7qUKYPY1UxWbiCmqH12S92W1QOOZv 7vtuE22RItPrUNqYjj/SMBVbmDmm89Vdb9y6T3gPHA9+yJyXycU04dE1B/cFyrAI0ul5 0zksYnb+uf59IkB/0cEaV1cd4IvEshrBKt5EoW+wcJszmBIV0hfDoWyZfE0I5fFWcL8p lSIQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@paul-moore-com.20150623.gappssmtp.com header.s=20150623 header.b=U2frkNF0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y8si5160591ejp.159.2021.06.11.10.25.23; Fri, 11 Jun 2021 10:25:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@paul-moore-com.20150623.gappssmtp.com header.s=20150623 header.b=U2frkNF0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230322AbhFKR01 (ORCPT + 99 others); Fri, 11 Jun 2021 13:26:27 -0400 Received: from mail-ej1-f47.google.com ([209.85.218.47]:37871 "EHLO mail-ej1-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229935AbhFKR00 (ORCPT ); Fri, 11 Jun 2021 13:26:26 -0400 Received: by mail-ej1-f47.google.com with SMTP id ce15so5652583ejb.4 for ; Fri, 11 Jun 2021 10:24:15 -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=pzkhQR4zj2j9hClx4qSj3DSk3XkJw57raw7U4YCqfCM=; b=U2frkNF0K/FlqX1WkHWwlRnqAMcYLf8zEeUtVCqb3KE1JE1NzKF0vFh3ERUIwk2n++ Oo0k3X9VcxVDVZ7OJyQb8XGjZVXyoFz/ciRqqIHnPqNFyF4uryTELkx2kRkFG+PDzpOH ugWGsGFPNO5q16y7J/G8/SQTgC3+GKDSUp4YaYMBoWexhJYxCDZkh0ovHJhSafllWgRO GQ4chkWYor0fRoI2e9sWbMcXD/QS7tFP0Jt3dY55AapfEO9ZnjUkP2Kl7YgYq0Aivs3a Z8KpqeqRaKrnUkm6v1vjRyVKAQfdmA4+ozRaq5k4KMRhG+kVkz1Q1mtYeZ98sqoOGJSI V2mw== 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=pzkhQR4zj2j9hClx4qSj3DSk3XkJw57raw7U4YCqfCM=; b=if8jnrnwk+CozF2l4Ov6LAk19+MblMiUVs7R0jn4aqkpGmas4Bc0GtoK7CT2lMU/v4 InkKVDcv8hJxR0yUGZYhRBQbbO5SnDqdiK3pc4lsVhgVFY9JqwbyyBh8mPMKTA4XP50a iJiDpLGLjzZOeVpv7ReaCs4Dp3x8OD7woR2+XyMoKpHOHRc6TmV8F+7MZXmLB1x3kU9m B5727kWOgDD3/PQVUSdSHnVDt1qqvQ+B+OaTryQhQcUHKee8WPdsqcLn/QC22PvRY1Bn a1dJuErKhfs7a9F2rLmcNuN1ZP5HkKIpSmNZpQvkBZSJAQe/sk46M1HGva0XQP6f6Ehm XRVQ== X-Gm-Message-State: AOAM530P2VAwC+s0ylis3HT9tMtxWI0lVo7oXMAS7Zbk3DHl2PPoIhO3 FJ2cfTGEcwzioHKFHGd7Lylbx3C4IGIivTKQaZUNy3zUPg== X-Received: by 2002:a17:906:1113:: with SMTP id h19mr4568382eja.398.1623432194550; Fri, 11 Jun 2021 10:23:14 -0700 (PDT) MIME-Version: 1.0 References: <20210611022835.GA1031@raspberrypi> In-Reply-To: <20210611022835.GA1031@raspberrypi> From: Paul Moore Date: Fri, 11 Jun 2021 13:23:03 -0400 Message-ID: Subject: Re: [PATCH] audit: remove unnecessary 'ret' initialization To: Austin Kim Cc: James Morris , Serge Hallyn , linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org, austin.kim@lge.com Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 10, 2021 at 10:30 PM Austin Kim wrote: > > From: Austin Kim > > The variable 'ret' is set to 0 when declared. > The 'ret' is unused until it is set to 0 again. > > So it had better remove unnecessary initialization. > > Signed-off-by: Austin Kim > --- > security/lsm_audit.c | 1 - > 1 file changed, 1 deletion(-) Merged into audit/next, thanks. -- paul moore www.paul-moore.com