diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2025-05-07 15:47:06 +0200 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2025-05-07 17:08:44 +0200 |
commit | 97f4b999e0c894d3e48e318aa1130132031815b3 (patch) | |
tree | 7d9e2fee3ee406bce396efee11eaa35515486f94 /net/lapb/lapb_timer.c | |
parent | aefc11550ebd08eadee6d643792c9092de2e472f (diff) |
genirq: Use scoped_guard() to shut clang up
This code pattern trips clang up:
if (fail)
goto undo;
guard(lock)(lock);
do_stuff();
return 0;
undo:
...
as it somehow extends the scope of the guard beyond the return statement.
Replace it with a scoped guard to help it to get its act together.
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Closes: https://lore.kernel.org/oe-kbuild-all/202505071809.ajpPxfoZ-lkp@intel.com/
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions