kni: remove needless casts
authorStephen Hemminger <stephen@networkplumber.org>
Thu, 16 Jul 2015 23:47:24 +0000 (16:47 -0700)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 22 Jul 2015 14:22:55 +0000 (16:22 +0200)
commit4558b74377305ae724f4b4862eb2068c79ef00a0
tree5f1d3726692788ece86ac068a002c3d3dbfbc9bf
parentac2f69c9fc222cdda0235731223d40a93388ed3d
kni: remove needless casts

This fixes cases in KNI where kernel allocation function return value
is needlessly casted.

Detected with coccinelle:
lib/librte_eal/linuxapp/kni/ethtool/igb/igb_main.c:3181:25-28:
WARNING: casting value returned by memory allocation function to (u32 *) is useless.
lib/librte_eal/linuxapp/kni/kni_vhost.c:690:9-28:
WARNING: casting value returned by memory allocation function to (struct rte_kni_fifo *) is useless.
lib/librte_eal/linuxapp/kni/kni_vhost.c:684:13-27:
WARNING: casting value returned by memory allocation function to (struct sk_buff *) is useless

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
lib/librte_eal/linuxapp/kni/ethtool/igb/igb_main.c
lib/librte_eal/linuxapp/kni/kni_vhost.c