[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20170425123250.ipltfpgcgbtk6h3g@mwanda>
Date: Tue, 25 Apr 2017 15:32:50 +0300
From: Dan Carpenter <dan.carpenter@...cle.com>
To: Pavel Machek <pavel@....cz>
Cc: SF Markus Elfring <elfring@...rs.sourceforge.net>,
linux-kernel@...r.kernel.org, kernel-janitors@...r.kernel.org
Subject: Re: [PATCH 3/3] HSI: omap_ssi: Delete an error message for a failed
memory allocation in ssi_add_controller()
1) That allocation will never fail in real life so it's dead code.
2) kmalloc and friends already have much better builtin in error
messages so it's useless.
3) There is a small memory savings from removing it.
I'm not saying you should apply the patch, I'm just saying that these
messages are pointless and detrimental.
regards,
an carpenter
Powered by blists - more mailing lists