commit | 340342ac85c1b16875208592f1650a07425777c4 | [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 | 785df8f62f12aa2b8b289424bdebaf6fc81f761d [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>