mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] Staging: olpc_dcon: Remove braces
@ 2015-10-10 15:21 Ksenija Stanojevic
  0 siblings, 0 replies; only message in thread
From: Ksenija Stanojevic @ 2015-10-10 15:21 UTC (permalink / raw)
  To: devel
  Cc: jfrederich, dsd, gregkh, jon.nettleton, linux-kernel, Ksenija Stanojevic

Braces in single statement blocks are not needed.

Found by checkpatch.pl

Signed-off-by: Ksenija Stanojevic<ksenija.stanojevic@gmail.com>
---
 drivers/staging/olpc_dcon/olpc_dcon.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/staging/olpc_dcon/olpc_dcon.c b/drivers/staging/olpc_dcon/olpc_dcon.c
index 9038e0b..3f424d1 100644
--- a/drivers/staging/olpc_dcon/olpc_dcon.c
+++ b/drivers/staging/olpc_dcon/olpc_dcon.c
@@ -243,9 +243,8 @@ static void dcon_load_holdoff(struct dcon_priv *dcon)
 	while (1) {
 		now = ktime_get();
 		delta_t = ktime_sub(now, dcon->load_time);
-		if (ktime_to_ns(delta_t) > NSEC_PER_MSEC * 20) {
+		if (ktime_to_ns(delta_t) > NSEC_PER_MSEC * 20)
 			break;
-		}
 		mdelay(4);
 	}
 }
-- 
1.9.1


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-10-10 15:21 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-10-10 15:21 [PATCH] Staging: olpc_dcon: Remove braces Ksenija Stanojevic

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®