Re: [PATCH net-next] ice: Fix a couple NULL vs IS_ERR() bugs
From: Simon Horman
Date: Sat Sep 14 2024 - 11:33:27 EST
On Sat, Sep 14, 2024 at 12:57:28PM +0300, Dan Carpenter wrote:
> 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@xxxxxxxxxx>
Reviewed-by: Simon Horman <horms@xxxxxxxxxx>