summaryrefslogtreecommitdiff
path: root/drivers/video
diff options
context:
space:
mode:
authorRobert Chiras <robert.chiras@nxp.com>2018-12-20 13:48:42 +0200
committerJason Liu <jason.hui.liu@nxp.com>2019-02-12 10:35:46 +0800
commit4daeed0672cc1beac15e029ce19af29bf24ec142 (patch)
tree0c79cbfbac05532e14fb6769f0a742a037380cfa /drivers/video
parent8069b0648e47275137fafb71c4c8824c94d6e3bc (diff)
MLK-20371: video: fbdev: adv7535: Fix coverity issues
Fix structurally dead code reported by coverity. Assign the return value to ret, instead of returning it so there will be a proper clean up. Signed-off-by: Robert Chiras <robert.chiras@nxp.com>
Diffstat (limited to 'drivers/video')
-rw-r--r--drivers/video/fbdev/mxc/adv7535.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/fbdev/mxc/adv7535.c b/drivers/video/fbdev/mxc/adv7535.c
index f47378fd9a03..805a402631e1 100644
--- a/drivers/video/fbdev/mxc/adv7535.c
+++ b/drivers/video/fbdev/mxc/adv7535.c
@@ -263,7 +263,7 @@ static int adv7535_probe(struct i2c_client *client,
info->fb_vmode = devm_kzalloc(dev, sizeof(struct fb_videomode),
GFP_KERNEL);
if (!info->fb_vmode) {
- return -ENOMEM;
+ ret = -ENOMEM;
goto err1;
}