can: af_can: can_rx_register(): use max() instead of open coding it
authorMarc Kleine-Budde <mkl@pengutronix.de>
Mon, 8 Oct 2018 07:02:36 +0000 (09:02 +0200)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Wed, 4 Sep 2019 11:29:14 +0000 (13:29 +0200)
commite2586a5796d6c6a812b401c7f1da2519ce3cf821
treeee33d6a17ccf633937b3d15a3836b712763da8a1
parent6625a18e9ff6462ff81f740a331899b69ad6033e
can: af_can: can_rx_register(): use max() instead of open coding it

This patch replaces an open coded max by the proper kernel define max().

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