diff options
author | Colin Ian King <[email protected]> | 2016-04-14 08:58:09 +0100 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2016-04-15 12:18:08 -0700 |
commit | 4903926f892ee10ead9571334efd43e80347b6f1 (patch) | |
tree | a28ca543b8062486c76e807ec35bd5dc2b1e43d9 /module/zfs/vdev_disk.c | |
parent | edd770ebfb8e389474be41070fc72a066bbcdaa4 (diff) |
Fix inverted logic on none elevator comparison
Commit d1d7e2689db9e03f1 ("cstyle: Resolve C style issues") inverted
the logic on the none elevator comparison. Fix this and make it
cstyle warning clean.
Signed-off-by: Colin Ian King <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
Closes #4507
Diffstat (limited to 'module/zfs/vdev_disk.c')
-rw-r--r-- | module/zfs/vdev_disk.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/module/zfs/vdev_disk.c b/module/zfs/vdev_disk.c index ebf0e8bfe..cdb8f78e2 100644 --- a/module/zfs/vdev_disk.c +++ b/module/zfs/vdev_disk.c @@ -139,7 +139,7 @@ vdev_elevator_switch(vdev_t *v, char *elevator) return (0); /* Leave existing scheduler when set to "none" */ - if (strncmp(elevator, "none", 4) && (strlen(elevator) == 4) == 0) + if ((strncmp(elevator, "none", 4) == 0) && (strlen(elevator) == 4)) return (0); #ifdef HAVE_ELEVATOR_CHANGE |