diff options
author | Katie Dunne <kdunne@mail.ccsf.edu> | 2017-02-20 07:38:57 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-03-06 11:17:02 +0300 |
commit | 144634a6b42146834fb58ddd629545edd3e518db (patch) | |
tree | 49256c4ec63b4559b024afb5960e3be353de3074 | |
parent | 06f6c8d4010d074c2f163eb0e1d17ad5e5574784 (diff) | |
download | linux-144634a6b42146834fb58ddd629545edd3e518db.tar.xz |
staging: sm750fb: add curly braces to if-statements
Add curly braces to if-statements for style compliance.
These cases are found by checkpatch.pl
Signed-off-by: Katie Dunne <kdunne@mail.ccsf.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/staging/sm750fb/sm750.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/drivers/staging/sm750fb/sm750.c b/drivers/staging/sm750fb/sm750.c index e49f8845f923..332a3ef27ba8 100644 --- a/drivers/staging/sm750fb/sm750.c +++ b/drivers/staging/sm750fb/sm750.c @@ -954,23 +954,23 @@ static void sm750fb_setup(struct sm750_dev *sm750_dev, char *src) dev_info(&sm750_dev->pdev->dev, "opt=%s\n", opt); dev_info(&sm750_dev->pdev->dev, "src=%s\n", src); - if (!strncmp(opt, "swap", strlen("swap"))) + if (!strncmp(opt, "swap", strlen("swap"))) { swap = 1; - else if (!strncmp(opt, "nocrt", strlen("nocrt"))) + } else if (!strncmp(opt, "nocrt", strlen("nocrt"))) { sm750_dev->nocrt = 1; - else if (!strncmp(opt, "36bit", strlen("36bit"))) + } else if (!strncmp(opt, "36bit", strlen("36bit"))) { sm750_dev->pnltype = sm750_doubleTFT; - else if (!strncmp(opt, "18bit", strlen("18bit"))) + } else if (!strncmp(opt, "18bit", strlen("18bit"))) { sm750_dev->pnltype = sm750_dualTFT; - else if (!strncmp(opt, "24bit", strlen("24bit"))) + } else if (!strncmp(opt, "24bit", strlen("24bit"))) { sm750_dev->pnltype = sm750_24TFT; - else if (!strncmp(opt, "nohwc0", strlen("nohwc0"))) + } else if (!strncmp(opt, "nohwc0", strlen("nohwc0"))) { g_hwcursor &= ~0x1; - else if (!strncmp(opt, "nohwc1", strlen("nohwc1"))) + } else if (!strncmp(opt, "nohwc1", strlen("nohwc1"))) { g_hwcursor &= ~0x2; - else if (!strncmp(opt, "nohwc", strlen("nohwc"))) + } else if (!strncmp(opt, "nohwc", strlen("nohwc"))) { g_hwcursor = 0; - else { + } else { if (!g_fbmode[0]) { g_fbmode[0] = opt; dev_info(&sm750_dev->pdev->dev, @@ -1168,13 +1168,13 @@ static int __init lynxfb_setup(char *options) */ while ((opt = strsep(&options, ":")) != NULL) { /* options that mean for any lynx chips are configured here */ - if (!strncmp(opt, "noaccel", strlen("noaccel"))) + if (!strncmp(opt, "noaccel", strlen("noaccel"))) { g_noaccel = 1; - else if (!strncmp(opt, "nomtrr", strlen("nomtrr"))) + } else if (!strncmp(opt, "nomtrr", strlen("nomtrr"))) { g_nomtrr = 1; - else if (!strncmp(opt, "dual", strlen("dual"))) + } else if (!strncmp(opt, "dual", strlen("dual"))) { g_dualview = 1; - else { + } else { strcat(tmp, opt); tmp += strlen(opt); if (options) |