diff options
| author | Jakub Kicinski <[email protected]> | 2019-02-26 03:34:07 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2019-02-26 16:49:05 +0000 |
| commit | be6fe1d8e1023bd80e122fa5eeeaff2ce66e9247 (patch) | |
| tree | 8b81f90a9de84f1842cf21285ff8a417497a2075 /net/switchdev/switchdev.c | |
| parent | devlink: hold a reference to the netdevice around ethtool compat (diff) | |
| download | kernel-be6fe1d8e1023bd80e122fa5eeeaff2ce66e9247.tar.gz kernel-be6fe1d8e1023bd80e122fa5eeeaff2ce66e9247.zip | |
devlink: require non-NULL ops for devlink instances
Commit 76726ccb7f46 ("devlink: add flash update command") and
commit 2d8dc5bbf4e7 ("devlink: Add support for reload")
access devlink ops without NULL-checking. There is, however, no
driver which would pass in NULL ops, so let's just make that
a requirement. Remove the now unnecessary NULL-checking.
Signed-off-by: Jakub Kicinski <[email protected]>
Reviewed-by: Florian Fainelli <[email protected]>
Acked-by: Jiri Pirko <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions
