From patchwork Wed Feb 25 18:07:18 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Uvarov X-Patchwork-Id: 45095 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-we0-f199.google.com (mail-we0-f199.google.com [74.125.82.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 148702142A for ; Wed, 25 Feb 2015 18:07:44 +0000 (UTC) Received: by wesq59 with SMTP id q59sf4168075wes.2 for ; Wed, 25 Feb 2015 10:07:43 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:date:message-id:subject :precedence:list-id:list-unsubscribe:list-archive:list-post :list-help:list-subscribe:mime-version:content-type :content-transfer-encoding:errors-to:sender:x-original-sender :x-original-authentication-results:mailing-list; bh=uR0eex64ANoELA8V7ALpV4nvhz8VIz5XS8DTt45v2QM=; b=XUDpSDw+pxkEYhhKKVNNcCQgeLL9H5Qui+CS9zkanncT+ijakoXoTm60UA+ivqrDtZ /3yA/rPftzF5psKZwyUHvGA7JNwwx4/iJsIfG2nX9V4ZKLD+So8cAwoCrrtrN4Nu+YW+ fmpCR1rVN95SU3HK0EnfSjknRjOqBPUMe3kIr71zXk6X+6vHwPb2z+60izLlpI15iJnU GhnXVzQRXKbeNCa12iipHYlsFzawhXVCjlGYq4u/C4CizsGiwTNnpvClwahsOOG6Mzs+ 67vmh+N6lGDKlLQEN7L3oCt6yJBy+gEw++2TamkOBr9S199hLULO80uob7JYweE/JEm8 Rjsg== X-Gm-Message-State: ALoCoQnZ0xU9fr1tBDhVqq25CnYZiof6ZMUkdMY9kn35BR6EJuaF8JaSQqY7W5iM9qsmw2VWbpr4 X-Received: by 10.112.146.65 with SMTP id ta1mr700046lbb.19.1424887663279; Wed, 25 Feb 2015 10:07:43 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.179.4 with SMTP id dc4ls211152lac.73.gmail; Wed, 25 Feb 2015 10:07:43 -0800 (PST) X-Received: by 10.152.37.166 with SMTP id z6mr3115601laj.71.1424887663016; Wed, 25 Feb 2015 10:07:43 -0800 (PST) Received: from mail-la0-f45.google.com (mail-la0-f45.google.com. [209.85.215.45]) by mx.google.com with ESMTPS id yg5si11945755lab.157.2015.02.25.10.07.42 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 25 Feb 2015 10:07:42 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.45 as permitted sender) client-ip=209.85.215.45; Received: by labgf13 with SMTP id gf13so5674892lab.9 for ; Wed, 25 Feb 2015 10:07:42 -0800 (PST) X-Received: by 10.152.21.100 with SMTP id u4mr3895886lae.41.1424887662846; Wed, 25 Feb 2015 10:07:42 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.35.133 with SMTP id h5csp2792650lbj; Wed, 25 Feb 2015 10:07:42 -0800 (PST) X-Received: by 10.140.31.36 with SMTP id e33mr9188188qge.36.1424887661629; Wed, 25 Feb 2015 10:07:41 -0800 (PST) Received: from ip-10-35-177-41.ec2.internal (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTPS id y5si13189597qgy.79.2015.02.25.10.07.40 (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 25 Feb 2015 10:07:41 -0800 (PST) Received-SPF: none (google.com: lng-odp-bounces@lists.linaro.org does not designate permitted sender hosts) client-ip=54.225.227.206; Received: from localhost ([127.0.0.1] helo=ip-10-35-177-41.ec2.internal) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1YQgMz-00018L-03; Wed, 25 Feb 2015 18:07:37 +0000 Received: from mail-lb0-f173.google.com ([209.85.217.173]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1YQgMt-00018D-EM for lng-odp@lists.linaro.org; Wed, 25 Feb 2015 18:07:31 +0000 Received: by lbvn10 with SMTP id n10so5638621lbv.6 for ; Wed, 25 Feb 2015 10:07:25 -0800 (PST) X-Received: by 10.112.136.201 with SMTP id qc9mr3999379lbb.57.1424887645593; Wed, 25 Feb 2015 10:07:25 -0800 (PST) Received: from localhost.localdomain (broadband-46-188-125-102.2com.net. [46.188.125.102]) by mx.google.com with ESMTPSA id p7sm4677099lag.7.2015.02.25.10.07.24 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 25 Feb 2015 10:07:24 -0800 (PST) From: Maxim Uvarov To: lng-odp@lists.linaro.org Date: Wed, 25 Feb 2015 21:07:18 +0300 Message-Id: <1424887638-30040-1-git-send-email-maxim.uvarov@linaro.org> X-Mailer: git-send-email 1.8.5.1.163.gd7aced9 X-Topics: crypto patch Subject: [lng-odp] [PATCH] example ipsec: init crypto result to 0 X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Errors-To: lng-odp-bounces@lists.linaro.org Sender: lng-odp-bounces@lists.linaro.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: maxim.uvarov@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.45 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 In bug: https://bugs.linaro.org/show_bug.cgi?id=1186 Coverity warns: CID 86888: Uninitialized scalar variable (UNINIT) Declaring variable "result" without initializer. In general result here is output and there is no need to init it to 0. Signed-off-by: Maxim Uvarov Reviewed-by: Bill Fischofer --- Note: I have no idea why Coverity warns about not init variable. But that patch have to made Coverity happy. example/ipsec/odp_ipsec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example/ipsec/odp_ipsec.c b/example/ipsec/odp_ipsec.c index 1aa68db..999e2f4 100644 --- a/example/ipsec/odp_ipsec.c +++ b/example/ipsec/odp_ipsec.c @@ -1056,7 +1056,7 @@ void *pktio_thread(void *arg EXAMPLE_UNUSED) pkt_disposition_e rc; pkt_ctx_t *ctx; odp_queue_t dispatchq; - odp_crypto_op_result_t result; + odp_crypto_op_result_t result = {0}; /* Use schedule to get event from any input queue */ ev = SCHEDULE(&dispatchq, ODP_SCHED_WAIT);