* [PATCH] Staging: rtl8188eu: Shorten if condition
@ 2015-02-27 18:57 Vatika Harlalka
0 siblings, 0 replies; only message in thread
From: Vatika Harlalka @ 2015-02-27 18:57 UTC (permalink / raw)
To: outreachy-kernel
Shorten if condition to make it more compact.
Signed-off-by: Vatika Harlalka <vatikaharlalka@gmail.com>
---
drivers/staging/rtl8188eu/hal/phy.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/rtl8188eu/hal/phy.c b/drivers/staging/rtl8188eu/hal/phy.c
index fa13139..d5b5998 100644
--- a/drivers/staging/rtl8188eu/hal/phy.c
+++ b/drivers/staging/rtl8188eu/hal/phy.c
@@ -1381,7 +1381,7 @@ void rtl88eu_phy_iq_calibrate(struct adapter *adapt, bool recovery)
result[0][i] = 0;
result[1][i] = 0;
result[2][i] = 0;
- if ((i == 0) || (i == 2) || (i == 4) || (i == 6))
+ if (i%2 == 0)
result[3][i] = 0x100;
else
result[3][i] = 0;
--
1.9.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2015-02-27 18:57 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-27 18:57 [PATCH] Staging: rtl8188eu: Shorten if condition Vatika Harlalka
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.