Staging: rtl8192e: Cleaning up error handling
authorFelix Schlepper <f3sch.git@outlook.com>
Fri, 24 Jun 2022 13:54:55 +0000 (15:54 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 27 Jun 2022 11:50:03 +0000 (13:50 +0200)
commitacde2522fa1aaa9aea58fb4c7dca596e8c0b5d57
tree527e94dbee0d6478b52faa9cf6f558ea1fd43a6d
parent9fdc63fe40faaffeecaf3f1425dd1b27892f96fc
Staging: rtl8192e: Cleaning up error handling

Moved error handling to one common block.
This removes double checking if all txb->fragments[]
were initialized.
The original code worked fine, but this is cleaner.

Signed-off-by: Felix Schlepper <f3sch.git@outlook.com>
Link: https://lore.kernel.org/r/13b32131cd00a1f0b8793657a24ada71240a8350.1656078068.git.f3sch.git@outlook.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192e/rtllib_tx.c