lkml.org 
[lkml]   [2019]   [Dec]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH 0/2] use jump label to handle resource release in irq_bypass_register_*
Date
From: Miaohe Lin <linmiaohe@huawei.com>

Use out_err jump label to help handle resource release.
It's a good practice to release resource in one place
and help eliminate some duplicated code.

Miaohe Lin (2):
KVM: lib: use jump label to handle resource release in
irq_bypass_register_consumer()
KVM: lib: use jump label to handle resource release in
irq_bypass_register_producer()

virt/lib/irqbypass.c | 38 ++++++++++++++++++++------------------
1 file changed, 20 insertions(+), 18 deletions(-)

--
2.19.1

\
 
 \ /
  Last update: 2019-12-06 03:55    [W:0.037 / U:6.036 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site