]> git.baikalelectronics.ru Git - uboot.git/commit
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)
commitdca3cde54512f50aa4ef4991ee04aeb3497d1a79
tree1a141e3673e0e99f9d80820228647c2233b4dc2a
parentd76669d000176c13e8bb73b2cd35762cc169fcea
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