Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp988054pxb; Wed, 3 Mar 2021 23:39:07 -0800 (PST) X-Google-Smtp-Source: ABdhPJyjzq9re/38qgS6Qklh0FvKjEYUYMqPcvrmDDuv0U572V+KCRl9nJ43WfT3rUy/bpz9H3FF X-Received: by 2002:aa7:c9c9:: with SMTP id i9mr2899835edt.160.1614843547499; Wed, 03 Mar 2021 23:39:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614843547; cv=none; d=google.com; s=arc-20160816; b=JrbRdnWpxXM28sqKcgfG4Pg3Zm//WIeFDHv+YG3OYK8wmPYJg+M5EL13SrGZMv5cG2 XxbwUAJAHljxCpX8S4PzZSvd6sriICRHitQcOnWuAcl76TGXIyrMLEtYnn0ahTIYaDXg +XRgu735KeyfBt0VCRyG1rybdUbr16ZJKdFtETWA22b5PbVFgOgsg8VxIzv8SN1SejBG a3/L7DhEk5lyqUKmtRCF2Bh1VvHLZ+IYPFWL7Nwx6K9gkAkvGsxU28yQvawF0bc/50ZY QPRODHpmGYdMnn4vftCSEEHFUghK7RTc1WKSc3Jx3WaM7BN0wy+FwHbCAJICVMcUVauW wDew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=pM6mjp7Djg5f4SfTpdFFbjFAr1aFF/cRYCS7fpxDU34=; b=PiVJ8t59kW6fLukcSEtjcLvvEPwM8t/UAv7QAveXEoqt/ILp6/m8gv51O47bCQVj3s RDwHCabTcBLZoRBBSefo6CYJef6cDTJVgql4EZLZ1y2T00JOzA6fXCE3CohfhhDxpEIY xXSXxYN3t2f4ZL+DCiIW1TV6hvkLhgqLQMiem9kQ6uInJzC3EGRAOlRSO3K+3a9KHTzl Gn4v06P/RR6ZZkw/ULHMxxhDFdWZAEROWzGrl77mYz22zMJaNVad4BTBMimWbomj/jwd bsYdjELV1PVJhUnsE4FBN1fTeYxZQbhwBGirnjh/gLdjkpDtOc44BSIlJuid1ey0NGBc cyLw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="FC2EN+w/"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id si28si12260308ejb.106.2021.03.03.23.38.44; Wed, 03 Mar 2021 23:39:07 -0800 (PST) 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=@chromium.org header.s=google header.b="FC2EN+w/"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236305AbhCCKdq (ORCPT + 99 others); Wed, 3 Mar 2021 05:33:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34260 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1443754AbhCBW4y (ORCPT ); Tue, 2 Mar 2021 17:56:54 -0500 Received: from mail-pl1-x635.google.com (mail-pl1-x635.google.com [IPv6:2607:f8b0:4864:20::635]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 39C4DC06178C for ; Tue, 2 Mar 2021 14:55:36 -0800 (PST) Received: by mail-pl1-x635.google.com with SMTP id d8so2491740plg.10 for ; Tue, 02 Mar 2021 14:55:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=pM6mjp7Djg5f4SfTpdFFbjFAr1aFF/cRYCS7fpxDU34=; b=FC2EN+w/cXbE1L5iUZKDDMVf/ajqnUFTPcgwXMyPPNXEisxojZOeWN7kI0PcCrDfl6 DnmHKfwqg1mNdwfVn/hxeNTQzLD/KtbPCyYfuU3gsMwMd+bJEEnrDT3cwWIVHDzz1S2M VLtUVgDXio9VHYft98UzqJuc3DyDrhGVuYI7s= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=pM6mjp7Djg5f4SfTpdFFbjFAr1aFF/cRYCS7fpxDU34=; b=Ydm06OPa4jkhrRFug0VaE2QwM3uutIOmP61p0Gr8aYO4mO58ODY5kzXlG7jOFOQbot +NLk8Z1PZAqQb2L6k8NCXwyGW4WEYm1jWTMGTDi30ONeVDgxJR1oFGZs+nOZ3o9TC1fW syl379Y9L1Lrm4enZ4y0R0iBZ9/3CEr7QGcWxll4MjI1kGD9jzySsceJafPiWiMWJ/Uq 7NubgaxI70MrlbQgHMkYK1rpHnIQq2yHCUic5eOiDifEdbY0MNX0IyIoTPcZnB6kYfxy cxY4s5/Fns58VkTFQ00+VTqCbMX5cFfG4ebW6wQsE1y9SWWn8j/Vo1Rlbg1SYI6nzz70 qULw== X-Gm-Message-State: AOAM531MxUggtS2bSxl04EBMYY5lNVHBSB3C23XMzN1ldkXeGEsi2ixL C8QbrNAvnDJaQ2Kzhx6u0P9g6A== X-Received: by 2002:a17:90a:8d84:: with SMTP id d4mr6628292pjo.56.1614725735845; Tue, 02 Mar 2021 14:55:35 -0800 (PST) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id p23sm21587294pfn.204.2021.03.02.14.55.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Mar 2021 14:55:35 -0800 (PST) From: Kees Cook To: Jason Yan , linux-hardening@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Kees Cook , Hulk Robot Subject: Re: [PATCH] gcc-plugins: structleak: remove unneeded variable 'ret' Date: Tue, 2 Mar 2021 14:54:20 -0800 Message-Id: <161472564886.3871405.3468382493884029994.b4-ty@chromium.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200418070505.10715-1-yanaijie@huawei.com> References: <20200418070505.10715-1-yanaijie@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 18 Apr 2020 15:05:05 +0800, Jason Yan wrote: > Fix the following coccicheck warning: > > scripts/gcc-plugins/structleak_plugin.c:177:14-17: Unneeded variable: > "ret". Return "0" on line 207 Applied to for-next/gcc-plugins, thanks! [1/1] gcc-plugins: structleak: remove unneeded variable 'ret' https://git.kernel.org/kees/c/b924a8197ac7 -- Kees Cook