Staging: olpc_dcon: Remove braces
authorKsenija Stanojevic <ksenija.stanojevic@gmail.com>
Sat, 10 Oct 2015 15:21:42 +0000 (17:21 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 13 Oct 2015 04:09:51 +0000 (21:09 -0700)
Braces in single statement blocks are not needed.

Found by checkpatch.pl

Signed-off-by: Ksenija Stanojevic<ksenija.stanojevic@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/olpc_dcon/olpc_dcon.c

index 9038e0b3f113a465f6ec772ff70854d206894276..3f424d14c33414f7013f7e76c81828fe7a2e6e3d 100644 (file)
@@ -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);
        }
 }
This page took 0.026575 seconds and 5 git commands to generate.