]> www.infradead.org Git - users/jedix/linux-maple.git/commit
staging: gpib: Cleanup allocate_gpios code
authorDave Penkler <dpenkler@gmail.com>
Fri, 18 Apr 2025 17:34:33 +0000 (19:34 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 25 Apr 2025 14:08:26 +0000 (16:08 +0200)
commit125cda86d1970572cf3d0086ad34cbae1f0c6afb
tree77d1a41f712ea0735896f648fe47a2c334f1fe86
parent427ab512c2c8784686738ade287e5eb52bd8292a
staging: gpib: Cleanup allocate_gpios code

The function was using unnecessary variables error and retval.
Simplify the code by testing for failure first and remove the
redundant variables.

Tested-by: Dave Penkler <dpenkler@gmail.com>
Signed-off-by: Dave Penkler <dpenkler@gmail.com>
Link: https://lore.kernel.org/r/20250418173434.2892-8-dpenkler@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/gpib/gpio/gpib_bitbang.c