OSDN Git Service

staging: rtl8188eu: odm: conditional setting with no effect
authorNicholas Mc Guire <hofrat@osadl.org>
Wed, 4 Feb 2015 10:28:55 +0000 (05:28 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 7 Feb 2015 09:37:52 +0000 (17:37 +0800)
commite914024d46e3de3c5c3ce9c5b77b564ad6a264c0
treed5a40a7c9530516c220178768d827a6dfedd1242
parent3d272700d73c6503138759c1de6021ee4466e4d8
staging: rtl8188eu: odm: conditional setting with no effect

The if and the else branch code are identical - so the condition has no
effect on the effective code - this patch removes the condition and the
duplicated code. Due to this being a fall-through-if here - the first
if condition has no effect either - so it also can be removed.
struct mlme_priv is thus also no longer needed here.

Signed-off-by: Nicholas Mc Guire <hofrat@osadl.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/hal/odm.c