equal
deleted
inserted
replaced
504 size_t size /**< number of bytes received */ |
504 size_t size /**< number of bytes received */ |
505 ) |
505 ) |
506 { |
506 { |
507 const void *ec_data = data + ETH_HLEN; |
507 const void *ec_data = data + ETH_HLEN; |
508 size_t ec_size = size - ETH_HLEN; |
508 size_t ec_size = size - ETH_HLEN; |
|
509 |
|
510 if (unlikely(!data)) { |
|
511 EC_WARN("%s() called with NULL data.\n", __func__); |
|
512 return; |
|
513 } |
|
514 |
509 device->rx_count++; |
515 device->rx_count++; |
510 |
516 |
511 if (unlikely(device->master->debug_level > 1)) { |
517 if (unlikely(device->master->debug_level > 1)) { |
512 EC_DBG("Received frame:\n"); |
518 EC_DBG("Received frame:\n"); |
513 ec_print_data(ec_data, ec_size); |
519 ec_print_data(ec_data, ec_size); |