can: af_can: can_rx_register(): use max() instead of open coding it