All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] video/console/sticore: Delete an error message for a failed memory allocation in sti_try_rom_generic()
@ 2017-12-05 18:00   ` SF Markus Elfring
  0 siblings, 0 replies; 8+ messages in thread
From: SF Markus Elfring @ 2017-12-05 18:00 UTC (permalink / raw)
  To: linux-fbdev, linux-parisc, dri-devel, Bartlomiej Zolnierkiewicz,
	Helge Deller, James E. J. Bottomley
  Cc: kernel-janitors, LKML

RnJvbTogTWFya3VzIEVsZnJpbmcgPGVsZnJpbmdAdXNlcnMuc291cmNlZm9yZ2UubmV0PgpEYXRl
OiBUdWUsIDUgRGVjIDIwMTcgMTg6NDU6NDIgKzAxMDAKCk9taXQgYW4gZXh0cmEgbWVzc2FnZSBm
b3IgYSBtZW1vcnkgYWxsb2NhdGlvbiBmYWlsdXJlIGluIHRoaXMgZnVuY3Rpb24uCgpUaGlzIGlz
c3VlIHdhcyBkZXRlY3RlZCBieSB1c2luZyB0aGUgQ29jY2luZWxsZSBzb2Z0d2FyZS4KClNpZ25l
ZC1vZmYtYnk6IE1hcmt1cyBFbGZyaW5nIDxlbGZyaW5nQHVzZXJzLnNvdXJjZWZvcmdlLm5ldD4K
LS0tCiBkcml2ZXJzL3ZpZGVvL2NvbnNvbGUvc3RpY29yZS5jIHwgNCArLS0tCiAxIGZpbGUgY2hh
bmdlZCwgMSBpbnNlcnRpb24oKyksIDMgZGVsZXRpb25zKC0pCgpkaWZmIC0tZ2l0IGEvZHJpdmVy
cy92aWRlby9jb25zb2xlL3N0aWNvcmUuYyBiL2RyaXZlcnMvdmlkZW8vY29uc29sZS9zdGljb3Jl
LmMKaW5kZXggZDFkMzc5Njc3M2FhLi4wOGI4MjI2NTY4NDYgMTAwNjQ0Ci0tLSBhL2RyaXZlcnMv
dmlkZW8vY29uc29sZS9zdGljb3JlLmMKKysrIGIvZHJpdmVycy92aWRlby9jb25zb2xlL3N0aWNv
cmUuYwpAQCAtODI3LDEwICs4MjcsOCBAQCBzdGF0aWMgc3RydWN0IHN0aV9zdHJ1Y3QgKnN0aV90
cnlfcm9tX2dlbmVyaWModW5zaWduZWQgbG9uZyBhZGRyZXNzLAogCX0KIAkKIAlzdGkgPSBremFs
bG9jKHNpemVvZigqc3RpKSwgR0ZQX0tFUk5FTCk7Ci0JaWYgKCFzdGkpIHsKLQkJcHJpbnRrKEtF
Uk5fRVJSICJOb3QgZW5vdWdoIG1lbW9yeSAhXG4iKTsKKwlpZiAoIXN0aSkKIAkJcmV0dXJuIE5V
TEw7Ci0JfQogCiAJc3Bpbl9sb2NrX2luaXQoJnN0aS0+bG9jayk7CiAKLS0gCjIuMTUuMQoKX19f
X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVsIG1h
aWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlzdHMu
ZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg==

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [PATCH] video/console/sticore: Delete an error message for a failed memory allocation in sti_try_rom_generic()
@ 2017-12-05 18:00   ` SF Markus Elfring
  0 siblings, 0 replies; 8+ messages in thread
From: SF Markus Elfring @ 2017-12-05 18:00 UTC (permalink / raw)
  To: linux-fbdev, linux-parisc, dri-devel, Bartlomiej Zolnierkiewicz,
	Helge Deller, James E. J. Bottomley
  Cc: LKML, kernel-janitors

From: Markus Elfring <elfring@users.sourceforge.net>
Date: Tue, 5 Dec 2017 18:45:42 +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/video/console/sticore.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/video/console/sticore.c b/drivers/video/console/sticore.c
index d1d3796773aa..08b822656846 100644
--- a/drivers/video/console/sticore.c
+++ b/drivers/video/console/sticore.c
@@ -827,10 +827,8 @@ static struct sti_struct *sti_try_rom_generic(unsigned long address,
 	}
 	
 	sti = kzalloc(sizeof(*sti), GFP_KERNEL);
-	if (!sti) {
-		printk(KERN_ERR "Not enough memory !\n");
+	if (!sti)
 		return NULL;
-	}
 
 	spin_lock_init(&sti->lock);
 
-- 
2.15.1

^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [PATCH] video/console/sticore: Delete an error message for a failed memory allocation in sti_try_rom
@ 2017-12-05 18:00   ` SF Markus Elfring
  0 siblings, 0 replies; 8+ messages in thread
From: SF Markus Elfring @ 2017-12-05 18:00 UTC (permalink / raw)
  To: linux-fbdev, linux-parisc, dri-devel, Bartlomiej Zolnierkiewicz,
	Helge Deller, James E. J. Bottomley
  Cc: kernel-janitors, LKML

From: Markus Elfring <elfring@users.sourceforge.net>
Date: Tue, 5 Dec 2017 18:45:42 +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/video/console/sticore.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/video/console/sticore.c b/drivers/video/console/sticore.c
index d1d3796773aa..08b822656846 100644
--- a/drivers/video/console/sticore.c
+++ b/drivers/video/console/sticore.c
@@ -827,10 +827,8 @@ static struct sti_struct *sti_try_rom_generic(unsigned long address,
 	}
 	
 	sti = kzalloc(sizeof(*sti), GFP_KERNEL);
-	if (!sti) {
-		printk(KERN_ERR "Not enough memory !\n");
+	if (!sti)
 		return NULL;
-	}
 
 	spin_lock_init(&sti->lock);
 
-- 
2.15.1


^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [PATCH] video/console/sticore: Delete an error message for a failed memory allocation in sti_try_rom_generic()
@ 2017-12-05 18:00   ` SF Markus Elfring
  0 siblings, 0 replies; 8+ messages in thread
From: SF Markus Elfring @ 2017-12-05 18:00 UTC (permalink / raw)
  To: linux-fbdev, linux-parisc, dri-devel, Bartlomiej Zolnierkiewicz,
	Helge Deller, James E. J. Bottomley
  Cc: kernel-janitors, LKML

From: Markus Elfring <elfring@users.sourceforge.net>
Date: Tue, 5 Dec 2017 18:45:42 +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/video/console/sticore.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/video/console/sticore.c b/drivers/video/console/sticore.c
index d1d3796773aa..08b822656846 100644
--- a/drivers/video/console/sticore.c
+++ b/drivers/video/console/sticore.c
@@ -827,10 +827,8 @@ static struct sti_struct *sti_try_rom_generic(unsigned long address,
 	}
 	
 	sti = kzalloc(sizeof(*sti), GFP_KERNEL);
-	if (!sti) {
-		printk(KERN_ERR "Not enough memory !\n");
+	if (!sti)
 		return NULL;
-	}
 
 	spin_lock_init(&sti->lock);
 
-- 
2.15.1

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply related	[flat|nested] 8+ messages in thread

* Re: [PATCH] video/console/sticore: Delete an error message for a failed memory allocation in sti_try_rom_generic()
  2017-12-05 18:00   ` [PATCH] video/console/sticore: Delete an error message for a failed memory allocation in sti_try_rom_generic() SF Markus Elfring
  (?)
  (?)
@ 2018-03-28 14:19     ` Bartlomiej Zolnierkiewicz
  -1 siblings, 0 replies; 8+ messages in thread
From: Bartlomiej Zolnierkiewicz @ 2018-03-28 14:19 UTC (permalink / raw)
  To: SF Markus Elfring
  Cc: linux-fbdev, linux-parisc, Helge Deller, kernel-janitors,
	James E. J. Bottomley, dri-devel, LKML

T24gVHVlc2RheSwgRGVjZW1iZXIgMDUsIDIwMTcgMDc6MDA6MjIgUE0gU0YgTWFya3VzIEVsZnJp
bmcgd3JvdGU6Cj4gRnJvbTogTWFya3VzIEVsZnJpbmcgPGVsZnJpbmdAdXNlcnMuc291cmNlZm9y
Z2UubmV0Pgo+IERhdGU6IFR1ZSwgNSBEZWMgMjAxNyAxODo0NTo0MiArMDEwMAo+IAo+IE9taXQg
YW4gZXh0cmEgbWVzc2FnZSBmb3IgYSBtZW1vcnkgYWxsb2NhdGlvbiBmYWlsdXJlIGluIHRoaXMg
ZnVuY3Rpb24uCj4gCj4gVGhpcyBpc3N1ZSB3YXMgZGV0ZWN0ZWQgYnkgdXNpbmcgdGhlIENvY2Np
bmVsbGUgc29mdHdhcmUuCj4gCj4gU2lnbmVkLW9mZi1ieTogTWFya3VzIEVsZnJpbmcgPGVsZnJp
bmdAdXNlcnMuc291cmNlZm9yZ2UubmV0PgoKUGF0Y2ggcXVldWVkIGZvciA0LjE3LCB0aGFua3Mu
CgpCZXN0IHJlZ2FyZHMsCi0tCkJhcnRsb21pZWogWm9sbmllcmtpZXdpY3oKU2Ftc3VuZyBSJkQg
SW5zdGl0dXRlIFBvbGFuZApTYW1zdW5nIEVsZWN0cm9uaWNzCgpfX19fX19fX19fX19fX19fX19f
X19fX19fX19fX19fX19fX19fX19fX19fX19fXwpkcmktZGV2ZWwgbWFpbGluZyBsaXN0CmRyaS1k
ZXZlbEBsaXN0cy5mcmVlZGVza3RvcC5vcmcKaHR0cHM6Ly9saXN0cy5mcmVlZGVza3RvcC5vcmcv
bWFpbG1hbi9saXN0aW5mby9kcmktZGV2ZWwK

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH] video/console/sticore: Delete an error message for a failed memory allocation in sti_try_rom_generic()
@ 2018-03-28 14:19     ` Bartlomiej Zolnierkiewicz
  0 siblings, 0 replies; 8+ messages in thread
From: Bartlomiej Zolnierkiewicz @ 2018-03-28 14:19 UTC (permalink / raw)
  To: SF Markus Elfring
  Cc: linux-fbdev, linux-parisc, dri-devel, Helge Deller,
	James E. J. Bottomley, LKML, kernel-janitors

On Tuesday, December 05, 2017 07:00:22 PM SF Markus Elfring wrote:
> From: Markus Elfring <elfring@users.sourceforge.net>
> Date: Tue, 5 Dec 2017 18:45:42 +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 queued for 4.17, thanks.

Best regards,
--
Bartlomiej Zolnierkiewicz
Samsung R&D Institute Poland
Samsung Electronics

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH] video/console/sticore: Delete an error message for a failed memory allocation in sti_try
@ 2018-03-28 14:19     ` Bartlomiej Zolnierkiewicz
  0 siblings, 0 replies; 8+ messages in thread
From: Bartlomiej Zolnierkiewicz @ 2018-03-28 14:19 UTC (permalink / raw)
  To: SF Markus Elfring
  Cc: linux-fbdev, linux-parisc, Helge Deller, kernel-janitors,
	James E. J. Bottomley, dri-devel, LKML

On Tuesday, December 05, 2017 07:00:22 PM SF Markus Elfring wrote:
> From: Markus Elfring <elfring@users.sourceforge.net>
> Date: Tue, 5 Dec 2017 18:45:42 +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 queued for 4.17, thanks.

Best regards,
--
Bartlomiej Zolnierkiewicz
Samsung R&D Institute Poland
Samsung Electronics


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH] video/console/sticore: Delete an error message for a failed memory allocation in sti_try_rom_generic()
@ 2018-03-28 14:19     ` Bartlomiej Zolnierkiewicz
  0 siblings, 0 replies; 8+ messages in thread
From: Bartlomiej Zolnierkiewicz @ 2018-03-28 14:19 UTC (permalink / raw)
  To: SF Markus Elfring
  Cc: linux-fbdev, linux-parisc, Helge Deller, kernel-janitors,
	James E. J. Bottomley, dri-devel, LKML

On Tuesday, December 05, 2017 07:00:22 PM SF Markus Elfring wrote:
> From: Markus Elfring <elfring@users.sourceforge.net>
> Date: Tue, 5 Dec 2017 18:45:42 +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 queued for 4.17, thanks.

Best regards,
--
Bartlomiej Zolnierkiewicz
Samsung R&D Institute Poland
Samsung Electronics

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2018-03-28 14:19 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <CGME20171205180033epcas4p3cb5142e079695c72736e1f27489466d3@epcas4p3.samsung.com>
2017-12-05 18:00 ` [PATCH] video/console/sticore: Delete an error message for a failed memory allocation in sti_try_rom_generic() SF Markus Elfring
2017-12-05 18:00   ` SF Markus Elfring
2017-12-05 18:00   ` [PATCH] video/console/sticore: Delete an error message for a failed memory allocation in sti_try_rom SF Markus Elfring
2017-12-05 18:00   ` [PATCH] video/console/sticore: Delete an error message for a failed memory allocation in sti_try_rom_generic() SF Markus Elfring
2018-03-28 14:19   ` Bartlomiej Zolnierkiewicz
2018-03-28 14:19     ` Bartlomiej Zolnierkiewicz
2018-03-28 14:19     ` [PATCH] video/console/sticore: Delete an error message for a failed memory allocation in sti_try Bartlomiej Zolnierkiewicz
2018-03-28 14:19     ` [PATCH] video/console/sticore: Delete an error message for a failed memory allocation in sti_try_rom_generic() Bartlomiej Zolnierkiewicz

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.