From: John Whitmore Date: Fri, 17 Aug 2018 18:34:38 +0000 (+0100) Subject: staging:rtl8192u: Replace magic number with defined constant - Style X-Git-Tag: v5.15~7699^2~584 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fe9756ee9e0c71c09bee4d154e339c77a81312a7;p=platform%2Fkernel%2Flinux-starfive.git staging:rtl8192u: Replace magic number with defined constant - Style The defined constant MIMO_PS_STATIC is used for this test for zero elsewhere in code so the magic number '0' has been replaced with that comment, which was actually explicitly mentioned in the comment. This is a simple coding style change which should have no impact on runtime code execution. Signed-off-by: John Whitmore Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/rtl8192u/r8192U_core.c b/drivers/staging/rtl8192u/r8192U_core.c index da4b376..4003c69 100644 --- a/drivers/staging/rtl8192u/r8192U_core.c +++ b/drivers/staging/rtl8192u/r8192U_core.c @@ -1997,7 +1997,7 @@ static void rtl8192_update_ratr_table(struct net_device *dev) break; case IEEE_N_24G: case IEEE_N_5G: - if (ieee->pHTInfo->PeerMimoPs == 0) { /* MIMO_PS_STATIC */ + if (ieee->pHTInfo->PeerMimoPs == MIMO_PS_STATIC) { ratr_value &= 0x0007F007; } else { if (priv->rf_type == RF_1T2R)