]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
drm/amd/powerplay: functions's return state was reversed
authorRex Zhu <Rex.Zhu@amd.com>
Wed, 29 Jun 2016 11:32:50 +0000 (19:32 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 7 Jul 2016 19:06:04 +0000 (15:06 -0400)
In commit 195567e99bdf6491a370b71a1dcf6b4c891495d7,
use true/false instead of 1/0 to fix build warning.
But the original logic: '0' means true and '1' means false.

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Rex Zhu <Rex.Zhu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/hwmgr/ppatomctrl.c

index bf4e18fd38724e3f285a58a4e7595d481fc33411..5d70e2c47faf9731c35c626392620331b233d5d2 100644 (file)
@@ -552,13 +552,13 @@ static bool atomctrl_lookup_gpio_pin(
                                pin_assignment->ucGpioPinBitShift;
                        gpio_pin_assignment->us_gpio_pin_aindex =
                                le16_to_cpu(pin_assignment->usGpioPin_AIndex);
-                       return false;
+                       return true;
                }
 
                offset += offsetof(ATOM_GPIO_PIN_ASSIGNMENT, ucGPIO_ID) + 1;
        }
 
-       return true;
+       return false;
 }
 
 /**