Skip to content
Snippets Groups Projects
Commit 108157c4 authored by Michael Walle's avatar Michael Walle Committed by Priyanka Jain
Browse files

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: default avatarMichael Walle <michael@walle.cc>
Reviewed-by: default avatarVladimir Oltean <vladimir.oltean@nxp.com>
Reviewed-by: default avatarRamon Fried <rfried.dev@gmail.com>
Reviewed-by: default avatarPriyanka Jain <priyanka.jain@nxp.com>
parent e5d7d119
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment