]> git.baikalelectronics.ru Git - kernel.git/commit
devlink: require non-NULL ops for devlink instances
authorJakub Kicinski <jakub.kicinski@netronome.com>
Tue, 26 Feb 2019 03:34:07 +0000 (19:34 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 26 Feb 2019 16:49:05 +0000 (08:49 -0800)
commite770d40ce0fbdb82ec3a24b14094d073de5e4ad6
tree8b81f90a9de84f1842cf21285ff8a417497a2075
parentb517dc73609ae3072db734f29b3930e4b200e833
devlink: require non-NULL ops for devlink instances

Commit 3deaca727a25 ("devlink: add flash update command") and
commit 61256d3161c9 ("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 <jakub.kicinski@netronome.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/devlink.c