staging/gdm72xx: Remove duplicated code in gdm_qos.c
authorPeter Huewe <peterhuewe@gmx.de>
Tue, 19 Feb 2013 17:50:20 +0000 (18:50 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 11 Mar 2013 16:25:54 +0000 (09:25 -0700)
commitd38529100d0f2e844df5f06d67dae8dd32086ec1
treefd3ef582211163dac1b7006c45d417674737e4c6
parenteb986df15c86b66a51f6e82f4706bc825444670b
staging/gdm72xx: Remove duplicated code in gdm_qos.c

The first branch of the if statement is ended with a return thus there
is no need for an else if, and thus we can move the duplicated code to
the top and use it for the other two branches.

Signed-off-by: Peter Huewe <peterhuewe@gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/gdm72xx/gdm_qos.c