From: Stephen Hemminger Date: Thu, 4 Jun 2015 14:43:23 +0000 (-0700) Subject: lib: fix whitespace X-Git-Tag: spdx-start~9126 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=a43a55472f7bee0ddffc70cd98b441ebeb78ae1d;p=dpdk.git lib: fix whitespace More places with trailing whitespace, and empty blank lines Signed-off-by: Stephen Hemminger --- diff --git a/lib/librte_cmdline/cmdline_cirbuf.c b/lib/librte_cmdline/cmdline_cirbuf.c index b9f9f4bc65..f506f88059 100644 --- a/lib/librte_cmdline/cmdline_cirbuf.c +++ b/lib/librte_cmdline/cmdline_cirbuf.c @@ -464,4 +464,3 @@ cirbuf_get_tail(struct cirbuf * cbuf) { return cbuf->buf[cbuf->end]; } - diff --git a/lib/librte_cmdline/cmdline_parse.c b/lib/librte_cmdline/cmdline_parse.c index dfc885cf6e..24a6ed67d4 100644 --- a/lib/librte_cmdline/cmdline_parse.c +++ b/lib/librte_cmdline/cmdline_parse.c @@ -561,4 +561,3 @@ cmdline_complete(struct cmdline *cl, const char *buf, int *state, } return 0; } - diff --git a/lib/librte_cmdline/cmdline_rdline.c b/lib/librte_cmdline/cmdline_rdline.c index f79ebe3125..1ef2258d00 100644 --- a/lib/librte_cmdline/cmdline_rdline.c +++ b/lib/librte_cmdline/cmdline_rdline.c @@ -695,4 +695,3 @@ rdline_miniprintf(struct rdline *rdl, const char * buf, unsigned int val) } } } - diff --git a/lib/librte_compat/rte_compat.h b/lib/librte_compat/rte_compat.h index 3a0fd2d352..fb0dc196ea 100644 --- a/lib/librte_compat/rte_compat.h +++ b/lib/librte_compat/rte_compat.h @@ -54,16 +54,16 @@ * foo is exported as a global symbol. * * 2) rename the existing function int foo(char *string) to - * int __vsym foo_v20(char *string) + * int __vsym foo_v20(char *string) * * 3) Add this macro immediately below the function - * VERSION_SYMBOL(foo, _v20, 2.0); + * VERSION_SYMBOL(foo, _v20, 2.0); * * 4) Implement a new version of foo. - * char foo(int value, int otherval) { ...} + * char foo(int value, int otherval) { ...} * * 5) Mark the newest version as the default version - * BIND_DEFAULT_SYMBOL(foo, 2.1); + * BIND_DEFAULT_SYMBOL(foo, 2.1); * */ diff --git a/lib/librte_hash/rte_fbk_hash.c b/lib/librte_hash/rte_fbk_hash.c index 356ddfe67a..8752a477e9 100644 --- a/lib/librte_hash/rte_fbk_hash.c +++ b/lib/librte_hash/rte_fbk_hash.c @@ -226,4 +226,3 @@ rte_fbk_hash_free(struct rte_fbk_hash_table *ht) rte_free(ht); rte_free(te); } - diff --git a/lib/librte_lpm/rte_lpm.c b/lib/librte_lpm/rte_lpm.c index 0945b8103c..0c87a2919e 100644 --- a/lib/librte_lpm/rte_lpm.c +++ b/lib/librte_lpm/rte_lpm.c @@ -1006,4 +1006,3 @@ rte_lpm_delete_all(struct rte_lpm *lpm) /* Delete all rules form the rules table. */ memset(lpm->rules_tbl, 0, sizeof(lpm->rules_tbl[0]) * lpm->max_rules); } - diff --git a/lib/librte_malloc/malloc_heap.c b/lib/librte_malloc/malloc_heap.c index defb903749..8861d27bfb 100644 --- a/lib/librte_malloc/malloc_heap.c +++ b/lib/librte_malloc/malloc_heap.c @@ -206,4 +206,3 @@ malloc_heap_get_stats(const struct malloc_heap *heap, socket_stats->alloc_count = heap->alloc_count; return 0; } - diff --git a/lib/librte_vhost/libvirt/qemu-wrap.py b/lib/librte_vhost/libvirt/qemu-wrap.py index e2d68a0ec0..50960112b7 100755 --- a/lib/librte_vhost/libvirt/qemu-wrap.py +++ b/lib/librte_vhost/libvirt/qemu-wrap.py @@ -49,17 +49,17 @@ # # 3.a) Set the VM to use the launch script # -# Set the emulator path contained in the +# Set the emulator path contained in the # tags # -# e.g replace /usr/bin/qemu-kvm +# e.g replace /usr/bin/qemu-kvm # with /usr/bin/qemu-wrap.py # # 3.b) Set the VM's device's to use vhost-net offload # # -# -# +# +# # # # 4. Enable libvirt to access our userpace device file by adding it to @@ -229,7 +229,7 @@ def get_vhost_fd(): # flags onto the end ############################################# def modify_netdev_arg(arg): - + global fd_list vhost_in_use = 0 s = '' @@ -259,7 +259,7 @@ def modify_netdev_arg(arg): s+=opt - return s + return s ############################################# @@ -364,4 +364,3 @@ def main(): if __name__ == "__main__": main() - diff --git a/lib/librte_vhost/vhost_rxtx.c b/lib/librte_vhost/vhost_rxtx.c index 4809d32709..2da4a0227b 100644 --- a/lib/librte_vhost/vhost_rxtx.c +++ b/lib/librte_vhost/vhost_rxtx.c @@ -615,7 +615,7 @@ rte_vhost_dequeue_burst(struct virtio_net *dev, uint16_t queue_id, if (unlikely(m == NULL)) { RTE_LOG(ERR, VHOST_DATA, "Failed to allocate memory for mbuf.\n"); - break; + break; } seg_offset = 0; seg_avail = m->buf_len - RTE_PKTMBUF_HEADROOM;