powerpc/perf/hv-24x7: Delete an error message for a failed memory allocation in create_events_from_catalog()
Subsystems (2)
PATCH 1/1 powerpc/perf/hv-24x7: Delete an error message for a failed memory allocation in create_events_from_catalog()
From: Markus Elfring <[email protected]>
Date: Thu, 5 Oct 2017 18:02:05 +0200
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]>
--- arch/powerpc/perf/hv-24x7.c | 1 - 1 file changed, 1 deletion(-)
arch/powerpc/perf/hv-24x7.c +0 -1
@@ -766,7 +766,6 @@ static int create_events_from_catalog(struct attribute ***events_,*/ event_data =vmalloc (event_data_bytes);if (!event_data) { -pr_err ("could not allocate event data\n" ); ret = -ENOMEM ; goto e_free; }
Signature · 1 line
2.14.2
Thanks, Markus.
Quoted 17 lines · SF Markus Elfring
From: Markus Elfring <[email protected]>
Date: Thu, 5 Oct 2017 18:02:05 +0200Omit 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]>--- arch/powerpc/perf/hv-24x7.c | 1 - 1 file changed, 1 deletion(-)arch/powerpc/perf/hv-24x7.c +0
-0
arch/powerpc/perf/hv-24x7.c static int create_events_from_catalog(struct attribute ***events_, · line 771
Quoted 7 lines
arch/powerpc/perf/hv-24x7.c +0
-1@@ -766,7 +766,6 @@ static int create_events_from_catalog(struct attribute ***events_,*/ event_data =vmalloc (event_data_bytes);if (!event_data) { -pr_err ("could not allocate event data\n" ); ret = -ENOMEM ; goto e_free; }
Reviewed-by Thiago Jung Bauermann <[email protected]>
Signature · 2 lines
Thiago Jung Bauermann IBM Linux Technology Center