drm/rockchip: Fix build warning in analogix_dp-rockchip.c
authorSean Paul <[email protected]>
Fri, 20 Oct 2017 17:25:48 +0000 (13:25 -0400)
committerSean Paul <[email protected]>
Fri, 20 Oct 2017 18:38:41 +0000 (14:38 -0400)
I didn't catch this before applying, just right after (of course).

Fixes:
../drivers/gpu/drm/rockchip/analogix_dp-rockchip.c: In function
‘rockchip_dp_of_probe’:
../drivers/gpu/drm/rockchip/analogix_dp-rockchip.c:276:6: warning:
unused variable ‘ret’ [-Wunused-variable]
  int ret;
        ^~~

Fixes: 102712a32ff5 ("drm/rockchip: analogix_dp: Remove unnecessary init
code")
Cc: Jeffy Chen <[email protected]>
Cc: Mark Yao <[email protected]>
Cc: Sean Paul <[email protected]>
Cc: Heiko Stuebner <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Acked-by: Daniel Vetter <[email protected]>
Signed-off-by: Sean Paul <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
drivers/gpu/drm/rockchip/analogix_dp-rockchip.c

index 8cae5ad926cd0780d5d38be7e9beda2f0a3ab003..39944c0f1c0bec304e0a6aa9bd26033e2244d2ea 100644 (file)
@@ -273,7 +273,6 @@ static int rockchip_dp_of_probe(struct rockchip_dp_device *dp)
 {
        struct device *dev = dp->dev;
        struct device_node *np = dev->of_node;
-       int ret;
 
        dp->grf = syscon_regmap_lookup_by_phandle(np, "rockchip,grf");
        if (IS_ERR(dp->grf)) {