net/xgene: fix Wvoid-pointer-to-enum-cast warning