From: Stephen Hemminger Date: Sat, 14 Feb 2015 14:59:09 +0000 (-0500) Subject: eal/linux: remove useless memset X-Git-Tag: spdx-start~9496 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=d886477be7db89d1605be7b1d0ea7980b7f1d691;p=dpdk.git eal/linux: remove useless memset The path variable is set via snprintf, and does not need to memset before that. Signed-off-by: Stephen Hemminger Acked-by: Bruce Richardson --- diff --git a/lib/librte_eal/linuxapp/eal/eal_hugepage_info.c b/lib/librte_eal/linuxapp/eal/eal_hugepage_info.c index 590cb56591..8d29e06c90 100644 --- a/lib/librte_eal/linuxapp/eal/eal_hugepage_info.c +++ b/lib/librte_eal/linuxapp/eal/eal_hugepage_info.c @@ -84,8 +84,6 @@ get_num_hugepages(const char *subdir) else nr_hp_file = "free_hugepages"; - memset(path, 0, sizeof(path)); - snprintf(path, sizeof(path), "%s/%s/%s", sys_dir_path, subdir, nr_hp_file);