From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.5 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_PASS,USER_AGENT_MUTT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 981C6C43381 for ; Tue, 19 Feb 2019 08:59:26 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 6D7FA21902 for ; Tue, 19 Feb 2019 08:59:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727602AbfBSI7Y (ORCPT ); Tue, 19 Feb 2019 03:59:24 -0500 Received: from mga06.intel.com ([134.134.136.31]:57491 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725765AbfBSI7Y (ORCPT ); Tue, 19 Feb 2019 03:59:24 -0500 X-Amp-Result: UNSCANNABLE X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 19 Feb 2019 00:59:23 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.58,387,1544515200"; d="scan'208";a="127544897" Received: from unknown (HELO localhost) ([10.237.50.132]) by orsmga003.jf.intel.com with ESMTP; 19 Feb 2019 00:59:21 -0800 Date: Tue, 19 Feb 2019 10:59:21 +0200 From: Jarkko Sakkinen To: YueHaibing Cc: peterhuewe@gmx.de, jgg@ziepe.ca, arnd@arndb.de, gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org, linux-integrity@vger.kernel.org Subject: Re: [PATCH -next] tpm: change the return type of calc_tpm2_event_size to size_t Message-ID: <20190219085921.GA5609@linux.intel.com> References: <20190219072618.23048-1-yuehaibing@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190219072618.23048-1-yuehaibing@huawei.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 19, 2019 at 03:26:18PM +0800, YueHaibing wrote: > calc_tpm2_event_size return size of the event which type is > size_t, If it is an invalid event, returns 0. And all the > caller use a size_t variable to check the return value, so > no need to convert to the return value type to int. > > Signed-off-by: YueHaibing I don't see this patch make any value. /Jarkko