From: SF Markus Elfring <hidden> Date: 2017-11-27 17:57:44
From: Markus Elfring <redacted>
Date: Mon, 27 Nov 2017 18:53:21 +0100
Three update suggestions were taken into account
from static source code analysis.
Markus Elfring (3):
Delete an error message for a failed memory allocation
Improve a size determination
Delete an unnecessary variable initialisation
drivers/video/fbdev/au1100fb.c | 9 +++------
1 file changed, 3 insertions(+), 6 deletions(-)
--
2.15.0
From: SF Markus Elfring <hidden> Date: 2017-11-27 17:59:04
From: Markus Elfring <redacted>
Date: Mon, 27 Nov 2017 18:14:41 +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/au1100fb.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
From: SF Markus Elfring <hidden> Date: 2017-11-27 18:00:09
From: Markus Elfring <redacted>
Date: Mon, 27 Nov 2017 18:18:34 +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/au1100fb.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
From: SF Markus Elfring <hidden> Date: 2017-11-27 18:01:55
From: Markus Elfring <redacted>
Date: Mon, 27 Nov 2017 18:40:23 +0100
The local variable "fbdev" will be reassigned by a following statement.
Thus omit the explicit initialisation at the beginning.
Signed-off-by: Markus Elfring <redacted>
---
drivers/video/fbdev/au1100fb.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
On Monday, November 27, 2017 06:58:22 PM SF Markus Elfring wrote:
From: Markus Elfring <redacted>
Date: Mon, 27 Nov 2017 18:14:41 +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 Monday, November 27, 2017 06:59:57 PM SF Markus Elfring wrote:
From: Markus Elfring <redacted>
Date: Mon, 27 Nov 2017 18:18:34 +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
On Monday, November 27, 2017 07:01:14 PM SF Markus Elfring wrote:
From: Markus Elfring <redacted>
Date: Mon, 27 Nov 2017 18:40:23 +0100
The local variable "fbdev" will be reassigned by a following statement.
Thus omit the explicit initialisation at the beginning.
Signed-off-by: Markus Elfring <redacted>
Patch queued for 4.17, thanks.
Best regards,
--
Bartlomiej Zolnierkiewicz
Samsung R&D Institute Poland
Samsung Electronics