diff options
author | Max Kellermann <max@duempel.org> | 2015-08-11 21:54:29 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2015-08-11 21:54:29 +0200 |
commit | 993df0fd289d4426c633fd6e6d12bffe6061599d (patch) | |
tree | e0f9d7b7477568f3b7dacf36b5f24d54ad9e73b8 /src/command/OtherCommands.cxx | |
parent | 4294fdb0b26ec6af77d1fc671e1b88941af10bd2 (diff) | |
download | mpd-993df0fd289d4426c633fd6e6d12bffe6061599d.tar.gz mpd-993df0fd289d4426c633fd6e6d12bffe6061599d.tar.xz mpd-993df0fd289d4426c633fd6e6d12bffe6061599d.zip |
command/{Queue,Other}: eliminate local "bool" variable
Diffstat (limited to 'src/command/OtherCommands.cxx')
-rw-r--r-- | src/command/OtherCommands.cxx | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/command/OtherCommands.cxx b/src/command/OtherCommands.cxx index 9ca7567b9..6ef9b0bd7 100644 --- a/src/command/OtherCommands.cxx +++ b/src/command/OtherCommands.cxx @@ -308,8 +308,6 @@ CommandResult handle_setvol(Client &client, ConstBuffer<const char *> args) { unsigned level; - bool success; - if (!check_unsigned(client, &level, args.front())) return CommandResult::ERROR; @@ -318,8 +316,7 @@ handle_setvol(Client &client, ConstBuffer<const char *> args) return CommandResult::ERROR; } - success = volume_level_change(client.partition.outputs, level); - if (!success) { + if (!volume_level_change(client.partition.outputs, level)) { command_error(client, ACK_ERROR_SYSTEM, "problems setting volume"); return CommandResult::ERROR; |