From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf0-f180.google.com (mail-pf0-f180.google.com [209.85.192.180]) by dpdk.org (Postfix) with ESMTP id 8A0B52A66 for ; Thu, 8 Dec 2016 02:48:01 +0100 (CET) Received: by mail-pf0-f180.google.com with SMTP id 189so80415370pfz.3 for ; Wed, 07 Dec 2016 17:48:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=PYij9nMK8DiTbAulbEp2OrQCCSDbKxO2H9E2pDuTm/s=; b=S920uUkk24SPa7CjmFQOO/mKvKtEAxgnRjh1pAI8bxOXWHvffo0SRgdGJFyIiokv3Z dqIMUhr4RJu1K6fAq2VbrYAO2s9MCK4SKWs2vvESzIbiRS15spRtshbTDpbyP/1rUZ+F xU4ho1HgGlbJddP6+06AO2+kKriYKavtt5RZChYcWnUqUouoW/uptcH1/GquMKE0hVg7 pndnIZDLlETkmj02gWSPF1alg+H8n4OrQFMrJYXlhr07VUs8wWuS5Ujqj8T14hp4JXi0 oWzmWsvwqzi4QcO6y+wy4/wJcLC1N68B9N4yCORMwajRHFBUcyIvMFR5QRzL+rdnspBr jYRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=PYij9nMK8DiTbAulbEp2OrQCCSDbKxO2H9E2pDuTm/s=; b=GEOT2vYwgCIRj5zTkmfIMqKZ76HTk+zn9OuICagcWe6Nqp56TmBKLyY/lgMFxocsvp npgUJJQDpB96RRmESa4PYsr8buWg624uWOcrqznpHS1N5vn4isn7Mr0KOXT28liNM+EH U1hC7/fwpfK0oNy/lP712FsER6c9hR67DN9Uk4rU6CkQyKeLj9gnQ89Q/5WU6GHt7BDW 5Qq5o+rWEVq4nuG/HaeHvqTIVdQcs17Pd9OjtlhxCX6K2bMheu/lfcHB5xZnwLRKyEbM K4idGWyOXfFqylDnkeJvrA2p71AoRbeI9rcE4bZMmV4fhpGHpUtehMdEWUhl5KfFFIG5 HsQA== X-Gm-Message-State: AKaTC03g/ZHiLJ2LBTM5hqo2UdAp47SSIU174u1mtDYfazMjqteMYEOgOaanh1VVPQi19Q== X-Received: by 10.84.129.35 with SMTP id 32mr116393044plb.179.1481161680877; Wed, 07 Dec 2016 17:48:00 -0800 (PST) Received: from xeon-e3.wavecable.com (204-195-18-65.wavecable.com. [204.195.18.65]) by smtp.gmail.com with ESMTPSA id i194sm45439681pgc.46.2016.12.07.17.48.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 07 Dec 2016 17:48:00 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Date: Wed, 7 Dec 2016 17:47:51 -0800 Message-Id: <20161208014751.24285-3-stephen@networkplumber.org> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20161208014751.24285-1-stephen@networkplumber.org> References: <20161208014751.24285-1-stephen@networkplumber.org> Subject: [dpdk-dev] [PATCH 2/2] sched/malloc: remove unnecesary return statements X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Dec 2016 01:48:02 -0000 return statements at end of void functions are unnecessary and unwanted. Signed-off-by: Stephen Hemminger --- drivers/net/bonding/rte_eth_bond_pmd.c | 2 +- lib/librte_eal/common/rte_malloc.c | 1 - lib/librte_sched/rte_bitmap.h | 2 -- 3 files changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/net/bonding/rte_eth_bond_pmd.c b/drivers/net/bonding/rte_eth_bond_pmd.c index a80b6fa..05afcee 100644 --- a/drivers/net/bonding/rte_eth_bond_pmd.c +++ b/drivers/net/bonding/rte_eth_bond_pmd.c @@ -241,8 +241,8 @@ arp_op_name(uint16_t arp_op, char *buf) default: break; } + snprintf(buf, sizeof("Unknown"), "%s", "Unknown"); - return; } #endif #define MaxIPv4String 16 diff --git a/lib/librte_eal/common/rte_malloc.c b/lib/librte_eal/common/rte_malloc.c index f4a8835..09970b0 100644 --- a/lib/librte_eal/common/rte_malloc.c +++ b/lib/librte_eal/common/rte_malloc.c @@ -232,7 +232,6 @@ rte_malloc_dump_stats(FILE *f, __rte_unused const char *type) fprintf(f, "\tAlloc_count:%u,\n",sock_stats.alloc_count); fprintf(f, "\tFree_count:%u,\n", sock_stats.free_count); } - return; } /* diff --git a/lib/librte_sched/rte_bitmap.h b/lib/librte_sched/rte_bitmap.h index 010d752..d432fdf 100644 --- a/lib/librte_sched/rte_bitmap.h +++ b/lib/librte_sched/rte_bitmap.h @@ -453,8 +453,6 @@ rte_bitmap_clear(struct rte_bitmap *bmp, uint32_t pos) offset1 = (pos >> RTE_BITMAP_CL_BIT_SIZE_LOG2) & RTE_BITMAP_SLAB_BIT_MASK; slab1 = bmp->array1 + index1; *slab1 &= ~(1lu << offset1); - - return; } static inline int -- 2.10.2