platform/mellanox: Remove redundant 'NULL' check