From: Thomas Monjalon Date: Tue, 19 May 2015 09:34:16 +0000 (+0200) Subject: examples/ip_pipeline: fix build with clang 3.6 X-Git-Tag: spdx-start~9181 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=0fbcba7b3614569f3430ce1493f6a5f5a787c023;p=dpdk.git examples/ip_pipeline: fix build with clang 3.6 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 Acked-by: Cristian Dumitrescu --- diff --git a/examples/ip_pipeline/cmdline.c b/examples/ip_pipeline/cmdline.c index 152acb524d..3173fd0f47 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);