net/szedata2: fix device memory access

Fixes: 8acba705b1 ("net/szedata2: localize handling of PCI resources")

Signed-off-by: Matej Vido <vido@cesnet.cz>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
This commit is contained in:
Matej Vido 2017-01-24 11:49:52 +01:00 committed by Ferruh Yigit
parent b82226bff7
commit e20bd8a93c

View File

@ -192,7 +192,7 @@ pci_resource_write64(struct rte_mem_resource *rsc, uint32_t offset,
}
#define SZEDATA2_PCI_RESOURCE_PTR(rsc, offset, type) \
((type)((uint8_t *)(rsc)->addr) + (offset))
((type)(((uint8_t *)(rsc)->addr) + (offset)))
enum szedata2_link_speed {
SZEDATA2_LINK_SPEED_DEFAULT = 0,