OSDN Git Service

staging: rtl8723bs: clean up identical code on an if statement
authorColin Ian King <colin.king@canonical.com>
Thu, 13 Apr 2017 15:46:36 +0000 (16:46 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 18 Apr 2017 11:54:25 +0000 (13:54 +0200)
commitd9c7dd5db1d0f6f212072625781dddbbe6e253d7
tree22e6d17c85f168970a835afc2806d8c6241527ab
parentff8d351d71f3261c964ce90d43ce6907e79e5fc4
staging: rtl8723bs: clean up identical code on an if statement

The two different paths for an if statement are identical and hence
we can just replace it with the single statement.

Detected by CoverityScan, CID#1428443 ("Identical code for
different branches")

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/core/rtw_mlme.c