genirq/irq_sim: Shrink code by using <linux/cleanup.h> helpers
authorBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Mon, 22 Jan 2024 12:42:43 +0000 (13:42 +0100)
committerIngo Molnar <mingo@kernel.org>
Mon, 29 Jan 2024 10:07:57 +0000 (11:07 +0100)
commitaafd753555c0ecb9c7ce11ff14429a34c8c0a14b
tree5d2afd144ef382e422c2567f74169949b8b945d1
parent8dab7fd47e53865d37fce73c67bac97b41d5d64a
genirq/irq_sim: Shrink code by using <linux/cleanup.h> helpers

Use the new __free() mechanism to remove all gotos and simplify the error
paths.

Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Nathan Chancellor <nathan@kernel.org>
Link: https://lore.kernel.org/r/20240122124243.44002-5-brgl@bgdev.pl
kernel/irq/irq_sim.c