mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-06 06:37:59 +00:00
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>
This commit is contained in:
parent
9119fedddb
commit
e36215d87f
1 changed files with 2 additions and 2 deletions
|
@ -1770,12 +1770,12 @@ static int validate_params(uint cmd, struct dm_ioctl *param)
|
||||||
cmd == DM_LIST_VERSIONS_CMD)
|
cmd == DM_LIST_VERSIONS_CMD)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
if ((cmd == DM_DEV_CREATE_CMD)) {
|
if (cmd == DM_DEV_CREATE_CMD) {
|
||||||
if (!*param->name) {
|
if (!*param->name) {
|
||||||
DMWARN("name not supplied when creating device");
|
DMWARN("name not supplied when creating device");
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
} else if ((*param->uuid && *param->name)) {
|
} else if (*param->uuid && *param->name) {
|
||||||
DMWARN("only supply one of name or uuid, cmd(%u)", cmd);
|
DMWARN("only supply one of name or uuid, cmd(%u)", cmd);
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue