From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wi0-f177.google.com (mail-wi0-f177.google.com [209.85.212.177]) by dpdk.org (Postfix) with ESMTP id AFDFEC320 for ; Tue, 19 May 2015 12:38:01 +0200 (CEST) Received: by wizk4 with SMTP id k4so111858108wiz.1 for ; Tue, 19 May 2015 03:38:01 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id; bh=uCrnJQBizuhDb6ZfRpdpoiS7GBXddgsYK2Dw3cSbmFs=; b=UVQmnQxVOU7yWAL7P4a77Nsy9kRryFdnUvh5SqOAbaxoyvBl7T491qamE3+BW75M1s 9gRPrWJqsVLtBq+ZhE5E7vGBiC5lZ7dyAAZttF2J/4iJic1FmU+mtqvH9uELHbcXcEfr R7iSXByZJMxiEvO53EM2ZSDSgdEajk4/Iuz/gGN4NrLPCtB6wNBhrv9dp0UX4apMa0Qx WTubrD6B8G55X8QpiWWOrYHRDJ4yyfOLe7mJSaI35aqQknwCfaCzj5h3lIAFm+XTj3j2 nQEAaEm2XnqIjNsZ9/XZ8sOJ8AQol9TX/CvUpm/YpvEEKDyVPCawf0tB+XBoBEI0oOaB bKwA== X-Gm-Message-State: ALoCoQlm611+ktfT+GAJ8urv9//QgiEyVNin/bWPIGv7BZ+4hGinSS82oQsntvstKoGjG0e59TrD X-Received: by 10.180.73.230 with SMTP id o6mr30984962wiv.11.1432031881432; Tue, 19 May 2015 03:38:01 -0700 (PDT) Received: from XPS13.nsn-net.net ([62.159.77.186]) by mx.google.com with ESMTPSA id ex2sm21148490wjd.28.2015.05.19.03.38.00 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 19 May 2015 03:38:00 -0700 (PDT) From: Thomas Monjalon To: dev@dpdk.org Date: Tue, 19 May 2015 12:37:14 +0200 Message-Id: <1432031834-12042-1-git-send-email-thomas.monjalon@6wind.com> X-Mailer: git-send-email 2.4.0 Subject: [dpdk-dev] [PATCH] examples/ip_pipeline: fix build with clang 3.6 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 May 2015 10:38:01 -0000 This error is detected: examples/ip_pipeline/cmdline.c:272:15: error: address of array 'params->file_path' will always evaluate to 'true' if (!params->file_path) { ~~~~~~~~~^~~~~~~~~ file_path is an array in a structure so it's unneeded to check it. Signed-off-by: Thomas Monjalon --- examples/ip_pipeline/cmdline.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/examples/ip_pipeline/cmdline.c b/examples/ip_pipeline/cmdline.c index 152acb5..3173fd0 100644 --- a/examples/ip_pipeline/cmdline.c +++ b/examples/ip_pipeline/cmdline.c @@ -268,12 +268,6 @@ cmd_run_file_parsed( struct cmdline *file_cl; int fd; - /* Check params */ - if (!params->file_path) { - printf("Illegal value for file path (%s)\n", params->file_path); - return; - } - fd = open(params->file_path, O_RDONLY, 0); if (fd < 0) { printf("Illegal value for file path (%s)\n", params->file_path); -- 2.4.0