We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c209847 commit 7583457Copy full SHA for 7583457
drivers/net/ethernet/intel/ice/ice_repr.c
@@ -452,8 +452,8 @@ struct ice_repr *ice_repr_create_vf(struct ice_vf *vf)
452
return ERR_PTR(-EINVAL);
453
454
repr = ice_repr_create(vsi);
455
- if (!repr)
456
- return ERR_PTR(-ENOMEM);
+ if (IS_ERR(repr))
+ return repr;
457
458
repr->type = ICE_REPR_TYPE_VF;
459
repr->vf = vf;
@@ -501,8 +501,8 @@ struct ice_repr *ice_repr_create_sf(struct ice_dynamic_port *sf)
501
{
502
struct ice_repr *repr = ice_repr_create(sf->vsi);
503
504
505
506
507
repr->type = ICE_REPR_TYPE_SF;
508
repr->sf = sf;
0 commit comments