]> www.infradead.org Git - users/jedix/linux-maple.git/commit
net: dsa: mt7530: get rid of function sanity check
authorArınç ÜNAL <arinc.unal@arinc9.com>
Mon, 22 Apr 2024 07:15:17 +0000 (10:15 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 24 Apr 2024 10:57:03 +0000 (11:57 +0100)
commit379f7bf864f6dfee88bcfdf0ee9c97b626160848
tree5c9f3ec35e1e57ce7ebbd88c7701cbeb5c52c7c1
parent6512204b4d5b9ee3749aafb6feb5f0967171e955
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>
drivers/net/dsa/mt7530.c