Removed two unneeded `if` statements. These statements had not effect in function results. Signed-off-by: Andrzej Puzdrowski <andrzej.puzdrowski@nordicsemi.no>