staging: r8188eu: to_fr_ds cannot be 3 here
authorMartin Kaiser <martin@kaiser.cx>
Sun, 3 Apr 2022 16:54:32 +0000 (18:54 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 4 Apr 2022 14:32:42 +0000 (16:32 +0200)
commiteafbade349fdc21feba0997918cb070b629ad9b4
treea0945d686767970f534d3207c82b5e6962a5a74d
parentd3a0a1dccc20618efdb575f5d95b746a7c4e2a3e
staging: r8188eu: to_fr_ds cannot be 3 here

Remove two unnecessary ternary operators in validate_recv_data_frame.
pattrib->to_fr_ds cannot be 3 in these places. If it was 3, we'd already
have returned an error to the caller.

Signed-off-by: Martin Kaiser <martin@kaiser.cx>
Link: https://lore.kernel.org/r/20220403165438.357728-6-martin@kaiser.cx
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/core/rtw_recv.c