* [PATCH 0/2] GPIO-OMAP: Adjustments for omap_gpio_probe()
@ 2018-02-10 21:05 ` SF Markus Elfring
0 siblings, 0 replies; 13+ messages in thread
From: SF Markus Elfring @ 2018-02-10 21:05 UTC (permalink / raw)
To: linux-gpio, linux-omap, Grygorii Strashko, Kevin Hilman,
Linus Walleij, Santosh Shilimkar
Cc: LKML, kernel-janitors
From: Markus Elfring <elfring@users.sourceforge.net>
Date: Sat, 10 Feb 2018 21:56:54 +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/gpio/gpio-omap.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
--
2.16.1
^ permalink raw reply [flat|nested] 13+ messages in thread
* [PATCH 0/2] GPIO-OMAP: Adjustments for omap_gpio_probe()
@ 2018-02-10 21:05 ` SF Markus Elfring
0 siblings, 0 replies; 13+ messages in thread
From: SF Markus Elfring @ 2018-02-10 21:05 UTC (permalink / raw)
To: linux-gpio, linux-omap, Grygorii Strashko, Kevin Hilman,
Linus Walleij, Santosh Shilimkar
Cc: LKML, kernel-janitors
From: Markus Elfring <elfring@users.sourceforge.net>
Date: Sat, 10 Feb 2018 21:56:54 +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/gpio/gpio-omap.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
--
2.16.1
^ permalink raw reply [flat|nested] 13+ messages in thread
* [PATCH 1/2] gpio: omap: Delete an error message for a failed memory allocation in omap_gpio_probe()
2018-02-10 21:05 ` SF Markus Elfring
@ 2018-02-10 21:07 ` SF Markus Elfring
-1 siblings, 0 replies; 13+ messages in thread
From: SF Markus Elfring @ 2018-02-10 21:07 UTC (permalink / raw)
To: linux-gpio, linux-omap, Grygorii Strashko, Kevin Hilman,
Linus Walleij, Santosh Shilimkar
Cc: LKML, kernel-janitors
From: Markus Elfring <elfring@users.sourceforge.net>
Date: Sat, 10 Feb 2018 21:46:30 +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 <elfring@users.sourceforge.net>
---
drivers/gpio/gpio-omap.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/gpio/gpio-omap.c b/drivers/gpio/gpio-omap.c
index ab5035b96886..4db6f13fa133 100644
--- a/drivers/gpio/gpio-omap.c
+++ b/drivers/gpio/gpio-omap.c
@@ -1158,10 +1158,8 @@ static int omap_gpio_probe(struct platform_device *pdev)
return -EINVAL;
bank = devm_kzalloc(dev, sizeof(struct gpio_bank), GFP_KERNEL);
- if (!bank) {
- dev_err(dev, "Memory alloc failed\n");
+ if (!bank)
return -ENOMEM;
- }
irqc = devm_kzalloc(dev, sizeof(*irqc), GFP_KERNEL);
if (!irqc)
--
2.16.1
^ permalink raw reply related [flat|nested] 13+ messages in thread
* [PATCH 1/2] gpio: omap: Delete an error message for a failed memory allocation in omap_gpio_probe()
@ 2018-02-10 21:07 ` SF Markus Elfring
0 siblings, 0 replies; 13+ messages in thread
From: SF Markus Elfring @ 2018-02-10 21:07 UTC (permalink / raw)
To: linux-gpio, linux-omap, Grygorii Strashko, Kevin Hilman,
Linus Walleij, Santosh Shilimkar
Cc: LKML, kernel-janitors
From: Markus Elfring <elfring@users.sourceforge.net>
Date: Sat, 10 Feb 2018 21:46:30 +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 <elfring@users.sourceforge.net>
---
drivers/gpio/gpio-omap.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/gpio/gpio-omap.c b/drivers/gpio/gpio-omap.c
index ab5035b96886..4db6f13fa133 100644
--- a/drivers/gpio/gpio-omap.c
+++ b/drivers/gpio/gpio-omap.c
@@ -1158,10 +1158,8 @@ static int omap_gpio_probe(struct platform_device *pdev)
return -EINVAL;
bank = devm_kzalloc(dev, sizeof(struct gpio_bank), GFP_KERNEL);
- if (!bank) {
- dev_err(dev, "Memory alloc failed\n");
+ if (!bank)
return -ENOMEM;
- }
irqc = devm_kzalloc(dev, sizeof(*irqc), GFP_KERNEL);
if (!irqc)
--
2.16.1
^ permalink raw reply related [flat|nested] 13+ messages in thread
* [PATCH 2/2] gpio: omap: Improve a size determination in omap_gpio_probe()
2018-02-10 21:05 ` SF Markus Elfring
@ 2018-02-10 21:08 ` SF Markus Elfring
-1 siblings, 0 replies; 13+ messages in thread
From: SF Markus Elfring @ 2018-02-10 21:08 UTC (permalink / raw)
To: linux-gpio, linux-omap, Grygorii Strashko, Kevin Hilman,
Linus Walleij, Santosh Shilimkar
Cc: LKML, kernel-janitors
From: Markus Elfring <elfring@users.sourceforge.net>
Date: Sat, 10 Feb 2018 21:49:22 +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 <elfring@users.sourceforge.net>
---
drivers/gpio/gpio-omap.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpio/gpio-omap.c b/drivers/gpio/gpio-omap.c
index 4db6f13fa133..35971a341c40 100644
--- a/drivers/gpio/gpio-omap.c
+++ b/drivers/gpio/gpio-omap.c
@@ -1157,7 +1157,7 @@ static int omap_gpio_probe(struct platform_device *pdev)
if (!pdata)
return -EINVAL;
- bank = devm_kzalloc(dev, sizeof(struct gpio_bank), GFP_KERNEL);
+ bank = devm_kzalloc(dev, sizeof(*bank), GFP_KERNEL);
if (!bank)
return -ENOMEM;
--
2.16.1
^ permalink raw reply related [flat|nested] 13+ messages in thread
* [PATCH 2/2] gpio: omap: Improve a size determination in omap_gpio_probe()
@ 2018-02-10 21:08 ` SF Markus Elfring
0 siblings, 0 replies; 13+ messages in thread
From: SF Markus Elfring @ 2018-02-10 21:08 UTC (permalink / raw)
To: linux-gpio, linux-omap, Grygorii Strashko, Kevin Hilman,
Linus Walleij, Santosh Shilimkar
Cc: LKML, kernel-janitors
From: Markus Elfring <elfring@users.sourceforge.net>
Date: Sat, 10 Feb 2018 21:49:22 +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 <elfring@users.sourceforge.net>
---
drivers/gpio/gpio-omap.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpio/gpio-omap.c b/drivers/gpio/gpio-omap.c
index 4db6f13fa133..35971a341c40 100644
--- a/drivers/gpio/gpio-omap.c
+++ b/drivers/gpio/gpio-omap.c
@@ -1157,7 +1157,7 @@ static int omap_gpio_probe(struct platform_device *pdev)
if (!pdata)
return -EINVAL;
- bank = devm_kzalloc(dev, sizeof(struct gpio_bank), GFP_KERNEL);
+ bank = devm_kzalloc(dev, sizeof(*bank), GFP_KERNEL);
if (!bank)
return -ENOMEM;
--
2.16.1
^ permalink raw reply related [flat|nested] 13+ messages in thread
* Re: [PATCH 0/2] GPIO-OMAP: Adjustments for omap_gpio_probe()
2018-02-10 21:05 ` SF Markus Elfring
(?)
@ 2018-02-12 17:33 ` Grygorii Strashko
-1 siblings, 0 replies; 13+ messages in thread
From: Grygorii Strashko @ 2018-02-12 17:33 UTC (permalink / raw)
To: SF Markus Elfring, linux-gpio, linux-omap, Kevin Hilman,
Linus Walleij, Santosh Shilimkar
Cc: LKML, kernel-janitors
On 02/10/2018 03:05 PM, SF Markus Elfring wrote:
> From: Markus Elfring <elfring@users.sourceforge.net>
> Date: Sat, 10 Feb 2018 21:56:54 +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/gpio/gpio-omap.c | 6 ++----
> 1 file changed, 2 insertions(+), 4 deletions(-)
>
For series:
Acked-by: Grygorii Strashko <grygorii.strashko@ti.com>
--
regards,
-grygorii
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PATCH 0/2] GPIO-OMAP: Adjustments for omap_gpio_probe()
@ 2018-02-12 17:33 ` Grygorii Strashko
0 siblings, 0 replies; 13+ messages in thread
From: Grygorii Strashko @ 2018-02-12 17:33 UTC (permalink / raw)
To: SF Markus Elfring, linux-gpio, linux-omap, Kevin Hilman,
Linus Walleij, Santosh Shilimkar
Cc: LKML, kernel-janitors
On 02/10/2018 03:05 PM, SF Markus Elfring wrote:
> From: Markus Elfring <elfring@users.sourceforge.net>
> Date: Sat, 10 Feb 2018 21:56:54 +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/gpio/gpio-omap.c | 6 ++----
> 1 file changed, 2 insertions(+), 4 deletions(-)
>
For series:
Acked-by: Grygorii Strashko <grygorii.strashko@ti.com>
--
regards,
-grygorii
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PATCH 0/2] GPIO-OMAP: Adjustments for omap_gpio_probe()
@ 2018-02-12 17:33 ` Grygorii Strashko
0 siblings, 0 replies; 13+ messages in thread
From: Grygorii Strashko @ 2018-02-12 17:33 UTC (permalink / raw)
To: SF Markus Elfring, linux-gpio, linux-omap, Kevin Hilman,
Linus Walleij, Santosh Shilimkar
Cc: LKML, kernel-janitors
On 02/10/2018 03:05 PM, SF Markus Elfring wrote:
> From: Markus Elfring <elfring@users.sourceforge.net>
> Date: Sat, 10 Feb 2018 21:56:54 +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/gpio/gpio-omap.c | 6 ++----
> 1 file changed, 2 insertions(+), 4 deletions(-)
>
For series:
Acked-by: Grygorii Strashko <grygorii.strashko@ti.com>
--
regards,
-grygorii
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PATCH 1/2] gpio: omap: Delete an error message for a failed memory allocation in omap_gpio_probe()
2018-02-10 21:07 ` SF Markus Elfring
@ 2018-02-22 14:16 ` Linus Walleij
-1 siblings, 0 replies; 13+ messages in thread
From: Linus Walleij @ 2018-02-22 14:16 UTC (permalink / raw)
To: SF Markus Elfring
Cc: linux-gpio, Linux-OMAP, Grygorii Strashko, Kevin Hilman,
Santosh Shilimkar, LKML, kernel-janitors
On Sat, Feb 10, 2018 at 10:07 PM, SF Markus Elfring
<elfring@users.sourceforge.net> wrote:
> From: Markus Elfring <elfring@users.sourceforge.net>
> Date: Sat, 10 Feb 2018 21:46:30 +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 <elfring@users.sourceforge.net>
Patch applied.
Yours,
Linus Walleij
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PATCH 1/2] gpio: omap: Delete an error message for a failed memory allocation in omap_gpio_prob
@ 2018-02-22 14:16 ` Linus Walleij
0 siblings, 0 replies; 13+ messages in thread
From: Linus Walleij @ 2018-02-22 14:16 UTC (permalink / raw)
To: SF Markus Elfring
Cc: linux-gpio, Linux-OMAP, Grygorii Strashko, Kevin Hilman,
Santosh Shilimkar, LKML, kernel-janitors
On Sat, Feb 10, 2018 at 10:07 PM, SF Markus Elfring
<elfring@users.sourceforge.net> wrote:
> From: Markus Elfring <elfring@users.sourceforge.net>
> Date: Sat, 10 Feb 2018 21:46:30 +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 <elfring@users.sourceforge.net>
Patch applied.
Yours,
Linus Walleij
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PATCH 2/2] gpio: omap: Improve a size determination in omap_gpio_probe()
2018-02-10 21:08 ` SF Markus Elfring
@ 2018-02-22 14:17 ` Linus Walleij
-1 siblings, 0 replies; 13+ messages in thread
From: Linus Walleij @ 2018-02-22 14:17 UTC (permalink / raw)
To: SF Markus Elfring
Cc: linux-gpio, Linux-OMAP, Grygorii Strashko, Kevin Hilman,
Santosh Shilimkar, LKML, kernel-janitors
On Sat, Feb 10, 2018 at 10:08 PM, SF Markus Elfring
<elfring@users.sourceforge.net> wrote:
> From: Markus Elfring <elfring@users.sourceforge.net>
> Date: Sat, 10 Feb 2018 21:49:22 +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 <elfring@users.sourceforge.net>
Patch applied.
Yours,
Linus Walleij
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [PATCH 2/2] gpio: omap: Improve a size determination in omap_gpio_probe()
@ 2018-02-22 14:17 ` Linus Walleij
0 siblings, 0 replies; 13+ messages in thread
From: Linus Walleij @ 2018-02-22 14:17 UTC (permalink / raw)
To: SF Markus Elfring
Cc: linux-gpio, Linux-OMAP, Grygorii Strashko, Kevin Hilman,
Santosh Shilimkar, LKML, kernel-janitors
On Sat, Feb 10, 2018 at 10:08 PM, SF Markus Elfring
<elfring@users.sourceforge.net> wrote:
> From: Markus Elfring <elfring@users.sourceforge.net>
> Date: Sat, 10 Feb 2018 21:49:22 +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 <elfring@users.sourceforge.net>
Patch applied.
Yours,
Linus Walleij
^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~2018-02-22 14:17 UTC | newest]
Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-02-10 21:05 [PATCH 0/2] GPIO-OMAP: Adjustments for omap_gpio_probe() SF Markus Elfring
2018-02-10 21:05 ` SF Markus Elfring
2018-02-10 21:07 ` [PATCH 1/2] gpio: omap: Delete an error message for a failed memory allocation in omap_gpio_probe() SF Markus Elfring
2018-02-10 21:07 ` SF Markus Elfring
2018-02-22 14:16 ` Linus Walleij
2018-02-22 14:16 ` [PATCH 1/2] gpio: omap: Delete an error message for a failed memory allocation in omap_gpio_prob Linus Walleij
2018-02-10 21:08 ` [PATCH 2/2] gpio: omap: Improve a size determination in omap_gpio_probe() SF Markus Elfring
2018-02-10 21:08 ` SF Markus Elfring
2018-02-22 14:17 ` Linus Walleij
2018-02-22 14:17 ` Linus Walleij
2018-02-12 17:33 ` [PATCH 0/2] GPIO-OMAP: Adjustments for omap_gpio_probe() Grygorii Strashko
2018-02-12 17:33 ` Grygorii Strashko
2018-02-12 17:33 ` Grygorii Strashko
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.