summaryrefslogtreecommitdiffstats
path: root/drivers/video/fbdev/core/fbcmap.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/video/fbdev/core/fbcmap.c')
-rw-r--r--drivers/video/fbdev/core/fbcmap.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/video/fbdev/core/fbcmap.c b/drivers/video/fbdev/core/fbcmap.c
index 2811c4afde01..e5ae33c1a8e8 100644
--- a/drivers/video/fbdev/core/fbcmap.c
+++ b/drivers/video/fbdev/core/fbcmap.c
@@ -285,11 +285,7 @@ int fb_set_user_cmap(struct fb_cmap_user *cmap, struct fb_info *info)
goto out;
}
umap.start = cmap->start;
- if (!lock_fb_info(info)) {
- rc = -ENODEV;
- goto out;
- }
-
+ lock_fb_info(info);
rc = fb_set_cmap(&umap, info);
unlock_fb_info(info);
out:
OpenPOWER on IntegriCloud