commit | 108157c468eed8291c866415b8708eb2a8735dc4 | [log] [tgz] |
---|---|---|
author | Michael Walle <michael@walle.cc> | Wed Feb 24 17:40:41 2021 +0100 |
committer | Priyanka Jain <priyanka.jain@nxp.com> | Fri Mar 05 10:25:42 2021 +0530 |
tree | 1a141e3673e0e99f9d80820228647c2233b4dc2a | |
parent | e5d7d119287ed1bc867e77225660c1ac9bb51072 [diff] |
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>