diff options
author | Markus Elfring <elfring@users.sourceforge.net> | 2018-03-28 17:34:29 +0300 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com> | 2018-03-28 17:34:29 +0300 |
commit | 29914badc59b23e496231c3234f7d3f3f35708c4 (patch) | |
tree | 62c99a798486738d0aff5711bfff20f59f0a23f7 /drivers/video | |
parent | 3af04d5c459485ce3f4e18c6331515092ca85be4 (diff) | |
download | linux-29914badc59b23e496231c3234f7d3f3f35708c4.tar.xz |
video: au1100fb: Delete an error message for a failed memory allocation in au1100fb_drv_probe()
Omit an extra message for a memory allocation failure in this function.
This issue was detected by using the Coccinelle software.
Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Diffstat (limited to 'drivers/video')
-rw-r--r-- | drivers/video/fbdev/au1100fb.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/video/fbdev/au1100fb.c b/drivers/video/fbdev/au1100fb.c index 8de42f617d16..cae17d02d804 100644 --- a/drivers/video/fbdev/au1100fb.c +++ b/drivers/video/fbdev/au1100fb.c @@ -418,10 +418,8 @@ static int au1100fb_drv_probe(struct platform_device *dev) /* Allocate new device private */ fbdev = devm_kzalloc(&dev->dev, sizeof(struct au1100fb_device), GFP_KERNEL); - if (!fbdev) { - print_err("fail to allocate device private record"); + if (!fbdev) return -ENOMEM; - } if (au1100fb_setup(fbdev)) goto failed; |