]> git.baikalelectronics.ru Git - kernel.git/commit
can: af_can: remove NULL-ptr checks from users of can_dev_rcv_lists_find()
authorMarc Kleine-Budde <mkl@pengutronix.de>
Mon, 8 Oct 2018 07:02:40 +0000 (09:02 +0200)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Wed, 4 Sep 2019 11:29:15 +0000 (13:29 +0200)
commitadebcba91b0c94ed5c8642f69f3b881462c11373
tree21f259a9bcfbaceafccc68be9d8575e939e7db5f
parentb5a9a996cc6f00fa3f48ca91ec4470cafbacfd46
can: af_can: remove NULL-ptr checks from users of can_dev_rcv_lists_find()

Since using the "struct can_ml_priv" for the per device "struct
dev_rcv_lists" the call can_dev_rcv_lists_find() cannot fail anymore.
This patch simplifies af_can by removing the NULL pointer checks from
the dev_rcv_lists returned by can_dev_rcv_lists_find().

Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
Acked-by: Oliver Hartkopp <socketcan@hartkopp.net>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
net/can/af_can.c