]> git.baikalelectronics.ru Git - kernel.git/commit
can: peak_usb: pcan_usb_fd_decode_status(): remove unnecessary test on the nullity...
authorStephane Grosjean <s.grosjean@peak-system.com>
Wed, 29 Sep 2021 14:21:11 +0000 (16:21 +0200)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Sun, 17 Oct 2021 20:51:51 +0000 (22:51 +0200)
commit553715feaa9e0453bc59f6ba20e1c69346888bd5
tree9a4c8c11bd195f8aea61b1efb9c7fb34a2af3eb5
parent3d031abc7e7249573148871180c28ecedb5e27df
can: peak_usb: pcan_usb_fd_decode_status(): remove unnecessary test on the nullity of a pointer

Since alloc_can_err_skb() puts NULL in cf in the case when skb cannot
be allocated and can_change_state() handles the case when cf is NULL,
the test on the nullity of skb is now unnecessary.

Link: https://lore.kernel.org/all/20210929142111.55757-2-s.grosjean@peak-system.com
Signed-off-by: Stephane Grosjean <s.grosjean@peak-system.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/usb/peak_usb/pcan_usb_fd.c