staging: rtl8723bs: remove code block guarded by undefined SDIO_DEBUG_IO
authorFabio Aiuto <fabioaiuto83@gmail.com>
Sat, 10 Apr 2021 14:20:23 +0000 (16:20 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 11 Apr 2021 06:45:02 +0000 (08:45 +0200)
remove code block guarded by SDIO_DEBUG_IO symbol.

Signed-off-by: Fabio Aiuto <fabioaiuto83@gmail.com>
Link: https://lore.kernel.org/r/ee77c4b4e6fbba8e0182e9558f793c88cf398cb5.1618064274.git.fabioaiuto83@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/hal/sdio_ops.c

index 4403ccd..24e45f7 100644 (file)
@@ -176,15 +176,7 @@ static u32 sdio_read32(struct intf_hdl *intfhdl, u32 addr)
                (adapter_to_pwrctl(adapter)->bFwCurrentInPSMode)
        ) {
                err = sd_cmd52_read(intfhdl, ftaddr, 4, (u8 *)&le_tmp);
-#ifdef SDIO_DEBUG_IO
-               if (!err) {
-#endif
-                       return le32_to_cpu(le_tmp);
-#ifdef SDIO_DEBUG_IO
-               }
-
-               return SDIO_ERR_VAL32;
-#endif
+               return le32_to_cpu(le_tmp);
        }
 
        /*  4 bytes alignment */