summaryrefslogtreecommitdiffstats
path: root/policy.c
diff options
context:
space:
mode:
authorJes Sorensen <jsorensen@fb.com>2017-05-16 20:09:57 +0200
committerJes Sorensen <jsorensen@fb.com>2017-05-16 20:09:57 +0200
commitd16a749444251c12689fa93d398149025a9c2398 (patch)
tree8a818cc964b203fbd611891ad9f91d3ab50d5510 /policy.c
parentmdadm: Fix '==' broken formatting (diff)
downloadmdadm-d16a749444251c12689fa93d398149025a9c2398.tar.xz
mdadm-d16a749444251c12689fa93d398149025a9c2398.zip
mdadm: Fixup != broken formatting
Signed-off-by: Jes Sorensen <jsorensen@fb.com>
Diffstat (limited to 'policy.c')
-rw-r--r--policy.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/policy.c b/policy.c
index 064d3491..b17585a9 100644
--- a/policy.c
+++ b/policy.c
@@ -887,9 +887,8 @@ int Write_rules(char *rule_name)
fd = 1;
/* write static invocation */
- if (write(fd, udev_template_start,
- sizeof(udev_template_start) - 1)
- != (int)sizeof(udev_template_start)-1)
+ if (write(fd, udev_template_start, sizeof(udev_template_start) - 1) !=
+ (int)sizeof(udev_template_start) - 1)
goto abort;
/* iterate, if none created or error occurred, remove file */