bus/ifpga: remove useless driver cast
authorThomas Monjalon <thomas@monjalon.net>
Tue, 25 Sep 2018 22:02:20 +0000 (00:02 +0200)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 27 Sep 2018 12:43:47 +0000 (14:43 +0200)
commit2ed055c5e32a39f5064639641f491e8a6839fe2d
tree3862a2fd74435a5b6fa72a2c27cc981324c2a017
parent55d6bb67c9b3858b50df6c74a3b37d87b271a027
bus/ifpga: remove useless driver cast

The rte_afu_driver is assigned to rte_afu_device.driver during probing.
There is no need of accessing the rte_afu_driver via rte_device.driver
and type casting to its container.

Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
Acked-by: Rosen Xu <rosen.xu@intel.com>
drivers/bus/ifpga/ifpga_bus.c
drivers/bus/ifpga/rte_bus_ifpga.h