]> git.baikalelectronics.ru Git - kernel.git/commit
net: ena: cosmetic: code reorderings
authorArthur Kiyanovski <akiyano@amazon.com>
Fri, 22 May 2020 09:09:02 +0000 (12:09 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 22 May 2020 21:12:48 +0000 (14:12 -0700)
commit7bb7e437b3018e41c33494ed3a9fb3d630bd5f86
tree069803dfb9050fd2477b10454f1bffbfa244a38a
parentf33ca5d597bc298d98c10cbfdca443cd5670cfc2
net: ena: cosmetic: code reorderings

1. Reorder sanity checks in get_comp_ctxt() to make more sense
2. Reorder variables in ena_com_fill_hash_function() and
   ena_calc_io_queue_size() in reverse christmas tree.
3. Move around member initializations.

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
drivers/net/ethernet/amazon/ena/ena_netdev.c