Staging: rtl8723bs: rtw_mlme: Remove unnecessary conditions
authorShreeya Patel <shreeya.patel23498@gmail.com>
Fri, 13 Mar 2020 10:29:12 +0000 (15:59 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 17 Mar 2020 11:39:40 +0000 (12:39 +0100)
commitaf68516eb921dc7a9686402b3299c5d53869df1d
tree202217f3aa0541b809529e383ed80337b8411147
parentb01e01351c4e3f5f5bc7bc3f4ea7753a2ad6eb77
Staging: rtl8723bs: rtw_mlme: Remove unnecessary conditions

Remove unnecessary if and else conditions since both are leading to the
initialization of "phtpriv->ampdu_enable" with the same value.
Also, remove the unnecessary else-if condition since it does nothing.

Signed-off-by: Shreeya Patel <shreeya.patel23498@gmail.com>
Reviewed-by: Stefano Brivio <sbrivio@redhat.com>
Link: https://lore.kernel.org/r/20200313102912.17218-1-shreeya.patel23498@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/core/rtw_mlme.c