datapath: Use correct type while allocating flex array.
authorPravin B Shelar <pshelar@nicira.com>
Thu, 25 Jul 2013 18:25:21 +0000 (11:25 -0700)
committerPravin B Shelar <pshelar@nicira.com>
Thu, 25 Jul 2013 18:25:21 +0000 (11:25 -0700)
commit8e1a83d8f335932fd210c079bcb96c82e790e373
tree2fa69565c434c5d8d648dd2994954fab79db6da8
parent994dea5bf4c1c5a760be608cc60e25734fd2524e
datapath: Use correct type while allocating flex array.

Flex array is used to allocate hash buckets which is type struct
hlist_head, but we use `struct hlist_head *` to calculate
array size.  Since hlist_head is of size pointer it works fine.

Following patch use correct type.

Signed-off-by: Pravin B Shelar <pshelar@nicira.com>
Acked-by: Jesse Gross <jesse@nicira.com>
datapath/flow.c