OSDN Git Service

staging: rtl8192e: Remove one of two checks for hardware RTL8192SE
authorPhilipp Hortmann <philipp.g.hortmann@gmail.com>
Fri, 7 Apr 2023 21:50:34 +0000 (23:50 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 15 Apr 2023 16:03:59 +0000 (18:03 +0200)
commita273033cf466a8f078beb87ea0f4938382f90fb5
treec64b013ad8bfde2f3b08e2edeb2815404f117b17
parentedc332a9f4deac969394c1ada1918f75564867aa
staging: rtl8192e: Remove one of two checks for hardware RTL8192SE

Check for hardware RTL8192SE is done in function _rtl92e_pci_probe()
directly and also two lines later in function rtl92e_check_adapter().
Remove top level check to increase readability.
This pci_read does not follow a pci_write to ensure data is written to
the device.

Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com>
Link: https://lore.kernel.org/r/4126cca73739c75b1a0379af2ef8b0c63a705639.1680902603.git.philipp.g.hortmann@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192e/rtl8192e/rtl_core.c