[dpdk-dev] [PATCH 0/2] functions with useless return
Stephen Hemminger
stephen at networkplumber.org
Fri Apr 17 17:35:32 CEST 2015
Fix a couple of cases (there are more) where functions
always return 0, by changing them to be void.
Stephen Hemminger (2):
log: rte_openlog_stream should be void
eal: pci probe and adjust_config should be void
lib/librte_eal/common/eal_common_log.c | 3 +--
lib/librte_eal/common/eal_common_options.c | 3 +--
lib/librte_eal/common/eal_common_pci.c | 7 ++-----
lib/librte_eal/common/eal_options.h | 2 +-
lib/librte_eal/common/include/rte_log.h | 5 +----
lib/librte_eal/common/include/rte_pci.h | 6 +-----
lib/librte_eal/linuxapp/eal/eal.c | 6 ++----
7 files changed, 9 insertions(+), 23 deletions(-)
--
2.1.4
More information about the dev
mailing list