net: ena: simplify ena_com_update_intr_delay_resolution()
authorArthur Kiyanovski <akiyano@amazon.com>
Fri, 22 May 2020 09:08:56 +0000 (12:08 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 22 May 2020 21:12:48 +0000 (14:12 -0700)
commitda447b3b542f2d89e368c8991203ae6aa025ddeb
treecf92b3d352ae1809742b7f6b88c8491eea9f2787
parentadb3fb388933e03c61e941bce4a0dac4a6ae98c0
net: ena: simplify ena_com_update_intr_delay_resolution()

Initialize prev_intr_delay_resolution with ena_dev->intr_delay_resolution
unconditionally, since it is initialized with
ENA_DEFAULT_INTR_DELAY_RESOLUTION in ena_probe(). This approach makes much
more sense than handling errors of not initializing it.

Also added unlikely to if condition.

Signed-off-by: Arthur Kiyanovski <akiyano@amazon.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/amazon/ena/ena_com.c