remove extra parentheses in return statement
authorHuawei Xie <huawei.xie@intel.com>
Wed, 27 Jan 2016 13:58:30 +0000 (21:58 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 10 Feb 2016 14:47:50 +0000 (15:47 +0100)
commit693f715da45c48ec1ec0fe4ba2f3b5ffd11ba53e
treeec6efdef6c7d9ac9d6d1813d2d184032385d6b9c
parent6e7caa1ad9d597fed0a49468af25ae6e68b8c443
remove extra parentheses in return statement

fix the error reported by checkpatch:
  "ERROR: return is not a function, parentheses are not required"

remove parentheses in return like:
  "return (logical expressions)"

remove parentheses in return a function like:
  "return (rte_mempool_lookup(...))"

Fixes: 6307b909b8e0 ("lib: remove extra parenthesis after return")

Signed-off-by: Huawei Xie <huawei.xie@intel.com>
96 files changed:
app/test-pmd/cmdline.c
app/test-pmd/config.c
app/test-pmd/flowgen.c
app/test-pmd/mempool_anon.c
app/test-pmd/testpmd.h
app/test-pmd/txonly.c
app/test/test_kni.c
app/test/test_mbuf.c
app/test/test_memcpy_perf.c
app/test/test_mempool.c
app/test/test_memzone.c
app/test/test_red.c
app/test/test_ring.c
doc/guides/sample_app_ug/ipv4_multicast.rst
drivers/crypto/aesni_mb/rte_aesni_mb_pmd_ops.c
drivers/crypto/qat/qat_crypto.c
drivers/crypto/qat/qat_qp.c
drivers/net/bnx2x/bnx2x.c
drivers/net/bnx2x/bnx2x.h
drivers/net/bnx2x/bnx2x_rxtx.c
drivers/net/bnx2x/debug.c
drivers/net/bnx2x/elink.c
drivers/net/bonding/rte_eth_bond_pmd.c
drivers/net/cxgbe/cxgbe_main.c
drivers/net/e1000/em_ethdev.c
drivers/net/e1000/em_rxtx.c
drivers/net/e1000/igb_ethdev.c
drivers/net/e1000/igb_rxtx.c
drivers/net/enic/enic_clsf.c
drivers/net/fm10k/fm10k_ethdev.c
drivers/net/i40e/i40e_ethdev.c
drivers/net/i40e/i40e_ethdev.h
drivers/net/i40e/i40e_ethdev_vf.c
drivers/net/i40e/i40e_rxtx.c
drivers/net/ixgbe/ixgbe_82599_bypass.c
drivers/net/ixgbe/ixgbe_bypass.c
drivers/net/ixgbe/ixgbe_ethdev.c
drivers/net/ixgbe/ixgbe_rxtx.c
drivers/net/mlx5/mlx5_rxq.c
drivers/net/mlx5/mlx5_utils.h
drivers/net/mpipe/mpipe_tilegx.c
drivers/net/nfp/nfp_net.c
drivers/net/virtio/virtio_ethdev.c
drivers/net/virtio/virtio_pci.c
drivers/net/vmxnet3/vmxnet3_ring.h
drivers/net/xenvirt/virtqueue.h
examples/ip_pipeline/cpu_core_map.c
examples/ip_pipeline/pipeline/pipeline_flow_actions_be.c
examples/ip_reassembly/main.c
examples/ipv4_multicast/main.c
examples/l3fwd/main.c
examples/multi_process/client_server_mp/mp_server/init.c
examples/multi_process/symmetric_mp/main.c
examples/netmap_compat/bridge/bridge.c
examples/netmap_compat/lib/compat_netmap.c
examples/performance-thread/common/lthread_queue.h
examples/performance-thread/common/lthread_sched.c
examples/qos_sched/args.c
examples/quota_watermark/qw/main.h
examples/vhost/main.c
examples/vhost_xen/main.c
examples/vhost_xen/vhost_monitor.c
lib/librte_acl/acl_bld.c
lib/librte_acl/acl_run_neon.h
lib/librte_cfgfile/rte_cfgfile.c
lib/librte_cryptodev/rte_cryptodev.c
lib/librte_eal/bsdapp/eal/eal_lcore.c
lib/librte_eal/common/eal_common_memzone.c
lib/librte_eal/common/include/arch/ppc_64/rte_atomic.h
lib/librte_eal/common/include/arch/ppc_64/rte_byteorder.h
lib/librte_eal/common/include/arch/ppc_64/rte_spinlock.h
lib/librte_eal/common/include/arch/x86/rte_atomic.h
lib/librte_eal/common/include/arch/x86/rte_spinlock.h
lib/librte_eal/common/include/generic/rte_atomic.h
lib/librte_eal/common/include/generic/rte_spinlock.h
lib/librte_eal/common/include/rte_lcore.h
lib/librte_eal/common/malloc_elem.c
lib/librte_eal/common/malloc_elem.h
lib/librte_eal/common/malloc_heap.c
lib/librte_eal/linuxapp/eal/eal_ivshmem.c
lib/librte_eal/linuxapp/eal/eal_xen_memory.c
lib/librte_eal/linuxapp/kni/ethtool/igb/igb_main.c
lib/librte_eal/linuxapp/kni/ethtool/ixgbe/ixgbe_main.c
lib/librte_eal/linuxapp/kni/ethtool/ixgbe/kcompat.c
lib/librte_eal/linuxapp/kni/kni_vhost.c
lib/librte_ether/rte_ether.h
lib/librte_hash/rte_cmp_x86.h
lib/librte_hash/rte_cuckoo_hash.c
lib/librte_ip_frag/ip_frag_internal.c
lib/librte_lpm/rte_lpm.c
lib/librte_mempool/rte_mempool.h
lib/librte_ring/rte_ring.h
lib/librte_sched/rte_approx.c
lib/librte_sched/rte_bitmap.h
lib/librte_sched/rte_red.h
lib/librte_sched/rte_sched.c