From 993df0fd289d4426c633fd6e6d12bffe6061599d Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 11 Aug 2015 21:54:29 +0200 Subject: command/{Queue,Other}: eliminate local "bool" variable --- src/command/OtherCommands.cxx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/command/OtherCommands.cxx') 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 args) { unsigned level; - bool success; - if (!check_unsigned(client, &level, args.front())) return CommandResult::ERROR; @@ -318,8 +316,7 @@ handle_setvol(Client &client, ConstBuffer 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; -- cgit v1.2.3