mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
video: s3c-fb: Delete an error message for a failed memory allocation in s3c_fb_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 <[email protected]> Acked-by: Jingoo Han <[email protected]> Signed-off-by: Bartlomiej Zolnierkiewicz <[email protected]>
This commit is contained in:
parent
d43f4b5d50
commit
00f3b8f1cf
1 changed files with 1 additions and 3 deletions
|
|
@ -1384,10 +1384,8 @@ static int s3c_fb_probe(struct platform_device *pdev)
|
|||
}
|
||||
|
||||
sfb = devm_kzalloc(dev, sizeof(struct s3c_fb), GFP_KERNEL);
|
||||
if (!sfb) {
|
||||
dev_err(dev, "no memory for framebuffers\n");
|
||||
if (!sfb)
|
||||
return -ENOMEM;
|
||||
}
|
||||
|
||||
dev_dbg(dev, "allocate new framebuffer %p\n", sfb);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue