common/cnxk: add null check for inline device