ice: Fix a couple NULL vs IS_ERR() bugs
authorDan Carpenter <dan.carpenter@linaro.org>
Sat, 14 Sep 2024 09:57:28 +0000 (12:57 +0300)
committerJakub Kicinski <kuba@kernel.org>
Sun, 15 Sep 2024 15:30:21 +0000 (08:30 -0700)
commit75834577c0870c9087274f015887b6f4106b3a24
tree431fead3defd86c77bfd3005eb3a4171f1b96867
parentc209847b8974d2d5e784e3105d4683835673b18d
ice: Fix a couple NULL vs IS_ERR() bugs

The ice_repr_create() function returns error pointers.  It never returns
NULL.  Fix the callers to check for IS_ERR().

Fixes: 977514fb0fa8 ("ice: create port representor for SF")
Fixes: 415db8399d06 ("ice: make representor code generic")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/7f7aeb91-8771-47b8-9275-9d9f64f947dd@stanley.mountain
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/intel/ice/ice_repr.c