diff options
author | Arınç ÜNAL <arinc.unal@arinc9.com> | 2024-04-22 10:15:17 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2024-04-24 11:57:03 +0100 |
commit | 379f7bf864f6dfee88bcfdf0ee9c97b626160848 (patch) | |
tree | 5c9f3ec35e1e57ce7ebbd88c7701cbeb5c52c7c1 | |
parent | 6512204b4d5b9ee3749aafb6feb5f0967171e955 (diff) |
net: dsa: mt7530: get rid of function sanity check
Get rid of checking whether functions are filled properly. priv->info which
is an mt753x_info structure is filled and checked for before this check.
It's unnecessary checking whether it's filled properly.
Signed-off-by: Arınç ÜNAL <arinc.unal@arinc9.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/dsa/mt7530.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/net/dsa/mt7530.c b/drivers/net/dsa/mt7530.c index 8a141f849673..842c2573dfe4 100644 --- a/drivers/net/dsa/mt7530.c +++ b/drivers/net/dsa/mt7530.c @@ -3232,13 +3232,6 @@ mt7530_probe_common(struct mt7530_priv *priv) if (!priv->info) return -EINVAL; - /* Sanity check if these required device operations are filled - * properly. - */ - if (!priv->info->sw_setup || !priv->info->phy_read_c22 || - !priv->info->phy_write_c22 || !priv->info->mac_port_get_caps) - return -EINVAL; - priv->id = priv->info->id; priv->dev = dev; priv->ds->priv = priv; |