net: dsa: remove NULL check for priv and platform data
authorMichael Walle <michael@walle.cc>
Wed, 24 Feb 2021 16:40:41 +0000 (17:40 +0100)
committerPriyanka Jain <priyanka.jain@nxp.com>
Fri, 5 Mar 2021 04:55:42 +0000 (10:25 +0530)
commit108157c468eed8291c866415b8708eb2a8735dc4
tree1a141e3673e0e99f9d80820228647c2233b4dc2a
parente5d7d119287ed1bc867e77225660c1ac9bb51072
net: dsa: remove NULL check for priv and platform data

Because the uclass has the "*_auto" properties set, the driver model
will take care of allocating the private structures for us and they
can't be NULL. Drop the checks.

Signed-off-by: Michael Walle <michael@walle.cc>
Reviewed-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Reviewed-by: Ramon Fried <rfried.dev@gmail.com>
Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
net/dsa-uclass.c