UPSTREAM: 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)
committerChromeBot <chrome-bot@google.com>
Wed, 1 May 2013 23:39:49 +0000 (16:39 -0700)
commit6f67a2fd1360a441857f531a10469423b47d54c4
treec6e8ce6e8d5382740163236507c2381345194b6e
parent0f7d107249e3ffbdad1c395b3cb97d009ed1ea69
UPSTREAM: 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>
(cherry picked from commit d38529100d0f2e844df5f06d67dae8dd32086ec1)

Change-Id: I9ad27e507f0f66a821dd9c2327dc67cc69bc8a10
Signed-off-by: Ben Chan <benchan@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/49426
Reviewed-by: Paul Stewart <pstew@chromium.org>
Reviewed-by: Olof Johansson <olofj@chromium.org>
drivers/staging/gdm72xx/gdm_qos.c