Skip to content
Commit e0b3ef17 authored by Jakub Kicinski's avatar Jakub Kicinski
Browse files

phylink: require valid state argument to phylink_validate_mask_caps()



state is deferenced earlier in the function, the NULL check
is pointless. Since we don't have any crash reports presumably
it's safe to assume state is not NULL.

Fixes: f392a184 ("net: phylink: provide phylink_validate_mask_caps() helper")
Reviewed-by: default avatarSean Anderson <sean.anderson@seco.com>
Link: https://lore.kernel.org/r/20221025185126.1720553-1-kuba@kernel.org


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent d1e96cc4
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment