summaryrefslogtreecommitdiffstats
path: root/drivers/md/dm-ioctl.c
diff options
context:
space:
mode:
authorMatthias Kaehlcke <mka@chromium.org>2017-04-17 14:05:03 -0400
committerMike Snitzer <snitzer@redhat.com>2017-04-24 14:31:53 -0400
commite36215d87f301f9567c8c99fd34e6c3521a94ddf (patch)
treec12d12f5bf550823e34b5c26fef5cfd555dc29cd /drivers/md/dm-ioctl.c
parent9119fedddb5b630eec3f3e39c4e382d9f60cca07 (diff)
dm ioctl: remove double parentheses
The extra pair of parantheses is not needed and causes clang to generate warnings about the DM_DEV_CREATE_CMD comparison in validate_params(). Also remove another double parentheses that doesn't cause a warning. Signed-off-by: Matthias Kaehlcke <mka@chromium.org> Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'drivers/md/dm-ioctl.c')
-rw-r--r--drivers/md/dm-ioctl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/md/dm-ioctl.c b/drivers/md/dm-ioctl.c
index 641d5e9cfedd..0956b8659360 100644
--- a/drivers/md/dm-ioctl.c
+++ b/drivers/md/dm-ioctl.c
@@ -1770,12 +1770,12 @@ static int validate_params(uint cmd, struct dm_ioctl *param)
1770 cmd == DM_LIST_VERSIONS_CMD) 1770 cmd == DM_LIST_VERSIONS_CMD)
1771 return 0; 1771 return 0;
1772 1772
1773 if ((cmd == DM_DEV_CREATE_CMD)) { 1773 if (cmd == DM_DEV_CREATE_CMD) {
1774 if (!*param->name) { 1774 if (!*param->name) {
1775 DMWARN("name not supplied when creating device"); 1775 DMWARN("name not supplied when creating device");
1776 return -EINVAL; 1776 return -EINVAL;
1777 } 1777 }
1778 } else if ((*param->uuid && *param->name)) { 1778 } else if (*param->uuid && *param->name) {
1779 DMWARN("only supply one of name or uuid, cmd(%u)", cmd); 1779 DMWARN("only supply one of name or uuid, cmd(%u)", cmd);
1780 return -EINVAL; 1780 return -EINVAL;
1781 } 1781 }