mbox series

[liburing,v1,0/5] Remove useless brances in register functions

Message ID 20221123124922.3612798-1-ammar.faizi@intel.com (mailing list archive)
Headers show
Series Remove useless brances in register functions | expand

Message

Ammar Faizi Nov. 23, 2022, 12:53 p.m. UTC
From: Ammar Faizi <ammarfaizi2@gnuweeb.org>

Hi Jens,

This series removes useless branches in register functions:
  - io_uring_register_eventfd()
  - io_uring_unregister_eventfd()
  - io_uring_register_eventfd_async()
  - io_uring_register_buffers()
  - io_uring_unregister_buffers()
  - io_uring_unregister_files()
  - io_uring_register_probe()
  - io_uring_register_restrictions()

There are 5 patches in this series.

Signed-off-by: Ammar Faizi <ammarfaizi2@gnuweeb.org>
---

Ammar Faizi (5):
  register: Remove useless branches in {un,}register eventfd
  register: Remove useless branches in {un,}register buffers
  register: Remove useless branch in unregister files
  register: Remove useless branch in register probe
  register: Remove useless branch in register restrictions

 src/register.c | 60 +++++++++++++++-----------------------------------
 1 file changed, 18 insertions(+), 42 deletions(-)


base-commit: 8fc22e3b3348c0a6384ec926e0b19b6707622e58

Comments

Jens Axboe Nov. 24, 2022, 1:34 p.m. UTC | #1
On Wed, 23 Nov 2022 19:53:12 +0700, Ammar Faizi wrote:
> From: Ammar Faizi <ammarfaizi2@gnuweeb.org>
> 
> Hi Jens,
> 
> This series removes useless branches in register functions:
>   - io_uring_register_eventfd()
>   - io_uring_unregister_eventfd()
>   - io_uring_register_eventfd_async()
>   - io_uring_register_buffers()
>   - io_uring_unregister_buffers()
>   - io_uring_unregister_files()
>   - io_uring_register_probe()
>   - io_uring_register_restrictions()
> 
> [...]

Applied, thanks!

[1/5] register: Remove useless branches in {un,}register eventfd
      commit: ed62cc1a3048e9aed33cf5fb8f47655fc5175bb4
[2/5] register: Remove useless branches in {un,}register buffers
      commit: a4ae8662b61bee4b89d6953348944030461f276d
[3/5] register: Remove useless branch in unregister files
      commit: 2ca898e57658b0b7a3506c9b97dd6d2a2238c2a3
[4/5] register: Remove useless branch in register probe
      commit: 3a418e3e95d0406b2868d79414065d8fa04f2238
[5/5] register: Remove useless branch in register restrictions
      commit: 636b6bdaa8d84f1b5318e27d1e4ffa86361ae66d

Best regards,