[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <87mv555sa6.fsf@linux.vnet.ibm.com>
Date: Thu, 05 Oct 2017 16:05:53 -0300
From: Thiago Jung Bauermann <bauerman@...ux.vnet.ibm.com>
To: SF Markus Elfring <elfring@...rs.sourceforge.net>
Cc: linuxppc-dev@...ts.ozlabs.org,
Benjamin Herrenschmidt <benh@...nel.crashing.org>,
Michael Ellerman <mpe@...erman.id.au>,
Paul Mackerras <paulus@...ba.org>,
Sukadev Bhattiprolu <sukadev@...ux.vnet.ibm.com>,
kernel-janitors@...r.kernel.org,
LKML <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] powerpc/perf/hv-24x7: Delete an error message for a failed memory allocation in create_events_from_catalog()
Thanks, Markus.
SF Markus Elfring <elfring@...rs.sourceforge.net> writes:
> From: Markus Elfring <elfring@...rs.sourceforge.net>
> 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 <elfring@...rs.sourceforge.net>
> ---
> arch/powerpc/perf/hv-24x7.c | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/arch/powerpc/perf/hv-24x7.c b/arch/powerpc/perf/hv-24x7.c
> index 9c88b82f6229..f21f30aaf9bd 100644
> --- a/arch/powerpc/perf/hv-24x7.c
> +++ b/arch/powerpc/perf/hv-24x7.c
> @@ -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 <bauerman@...ux.vnet.ibm.com>
--
Thiago Jung Bauermann
IBM Linux Technology Center
Powered by blists - more mailing lists