From: SF Markus Elfring <hidden> Date: 2017-12-05 17:11:28
From: Markus Elfring <redacted>
Date: Tue, 5 Dec 2017 18:07:06 +0100
Two update suggestions were taken into account
from static source code analysis.
Markus Elfring (2):
Delete an error message for a failed memory allocation
Improve a size determination
drivers/video/fbdev/amba-clcd.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
--
2.15.1
From: SF Markus Elfring <hidden> Date: 2017-12-05 17:12:48
From: Markus Elfring <redacted>
Date: Tue, 5 Dec 2017 17:50:11 +0100
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 <redacted>
---
drivers/video/fbdev/amba-clcd.c | 1 -
1 file changed, 1 deletion(-)
@@ -969,7 +969,6 @@ static int clcdfb_probe(struct amba_device *dev, const struct amba_id *id)fb=kzalloc(sizeof(structclcd_fb),GFP_KERNEL);if(!fb){-printk(KERN_INFO"CLCD: could not allocate new clcd_fb struct\n");ret=-ENOMEM;gotofree_region;}
From: SF Markus Elfring <hidden> Date: 2017-12-05 17:14:25
From: Markus Elfring <redacted>
Date: Tue, 5 Dec 2017 17:53:19 +0100
Replace the specification of a data structure by a pointer dereference
as the parameter for the operator "sizeof" to make the corresponding size
determination a bit safer according to the Linux coding style convention.
This issue was detected by using the Coccinelle software.
Signed-off-by: Markus Elfring <redacted>
---
drivers/video/fbdev/amba-clcd.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
On Tuesday, December 05, 2017 06:12:30 PM SF Markus Elfring wrote:
From: Markus Elfring <redacted>
Date: Tue, 5 Dec 2017 17:50:11 +0100
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 <redacted>
Patch queued for 4.17, thanks.
Best regards,
--
Bartlomiej Zolnierkiewicz
Samsung R&D Institute Poland
Samsung Electronics
On Tuesday, December 05, 2017 06:13:33 PM SF Markus Elfring wrote:
From: Markus Elfring <redacted>
Date: Tue, 5 Dec 2017 17:53:19 +0100
Replace the specification of a data structure by a pointer dereference
as the parameter for the operator "sizeof" to make the corresponding size
determination a bit safer according to the Linux coding style convention.
This issue was detected by using the Coccinelle software.
Signed-off-by: Markus Elfring <redacted>
Patch queued for 4.17, thanks.
Best regards,
--
Bartlomiej Zolnierkiewicz
Samsung R&D Institute Poland
Samsung Electronics