All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] wilc1000 : rearrange line exceeding 80 characters
@ 2020-03-10  9:28 Deepak R Varma
  2020-03-10  9:46 ` Greg KH
  0 siblings, 1 reply; 4+ messages in thread
From: Deepak R Varma @ 2020-03-10  9:28 UTC (permalink / raw)
  To: outreachy-kernel; +Cc: adham.abozaeid, ajay.kathat, gregkh, daniel.baluta

A long if condition exceeding 80 characters that makes evaluation
appear confusing. Rearranging the condition makes it easier to understand.

Signed-off-by: Deepak R Varma <mh12gx2825@gmail.com>
---
 drivers/staging/wilc1000/netdev.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/drivers/staging/wilc1000/netdev.c b/drivers/staging/wilc1000/netdev.c
index 045f5cdfdca0..d7a632c92a76 100644
--- a/drivers/staging/wilc1000/netdev.c
+++ b/drivers/staging/wilc1000/netdev.c
@@ -802,8 +802,10 @@ void wilc_wfi_mgmt_rx(struct wilc *wilc, u8 *buff, u32 size)
 		u16 type = le16_to_cpup((__le16 *)buff);
 
 		if (vif->priv.p2p_listen_state &&
-		    ((type == vif->frame_reg[0].type && vif->frame_reg[0].reg) ||
-		     (type == vif->frame_reg[1].type && vif->frame_reg[1].reg)))
+		    ((type == vif->frame_reg[0].type &&
+			vif->frame_reg[0].reg) ||
+		     (type == vif->frame_reg[1].type &&
+			vif->frame_reg[1].reg)))
 			wilc_wfi_p2p_rx(vif, buff, size);
 
 		if (vif->monitor_flag)
-- 
2.17.1



^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-03-10 11:38 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-03-10  9:28 [PATCH] wilc1000 : rearrange line exceeding 80 characters Deepak R Varma
2020-03-10  9:46 ` Greg KH
2020-03-10 11:04   ` Deepak Varma
2020-03-10 11:38     ` [Outreachy kernel] " Vaishali Thakkar

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.