]> git.baikalelectronics.ru Git - kernel.git/commit
Drivers: hv: vmbus: Refactor the ring-buffer iterator functions
authorAndrea Parri (Microsoft) <parri.andrea@gmail.com>
Thu, 28 Apr 2022 14:51:07 +0000 (16:51 +0200)
committerWei Liu <wei.liu@kernel.org>
Thu, 28 Apr 2022 15:01:15 +0000 (15:01 +0000)
commit52083bc3f2d03a34a0162766f07e0d8b24ce2475
tree56d16e7290c3e33fc7ff28848372eee9a69e3d31
parent1672202a30a0c1fec76f823aec90b7adc52a16b1
Drivers: hv: vmbus: Refactor the ring-buffer iterator functions

With no users of hv_pkt_iter_next_raw() and no "external" users of
hv_pkt_iter_first_raw(), the iterator functions can be refactored
and simplified to remove some indirection/code.

Signed-off-by: Andrea Parri (Microsoft) <parri.andrea@gmail.com>
Reviewed-by: Michael Kelley <mikelley@microsoft.com>
Link: https://lore.kernel.org/r/20220428145107.7878-6-parri.andrea@gmail.com
Signed-off-by: Wei Liu <wei.liu@kernel.org>
drivers/hv/ring_buffer.c
include/linux/hyperv.h