From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marek Vasut Date: Fri, 11 Jul 2014 01:23:00 +0200 Subject: [U-Boot] [PATCH v2 03/29] stdio: Remove redundant code around stdio_register() calls In-Reply-To: <1404877099-7314-4-git-send-email-sjg@chromium.org> References: <1404877099-7314-1-git-send-email-sjg@chromium.org> <1404877099-7314-4-git-send-email-sjg@chromium.org> Message-ID: <201407110123.00405.marex@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Wednesday, July 09, 2014 at 05:37:53 AM, Simon Glass wrote: > There is no point in setting a structure's memory to NULL when it has > already been zeroed with memset(). > > Also, there is no need to create a stub function for stdio to call - if the > function is NULL it will not be called. > > This is a clean-up, with no change in functionality. > > Signed-off-by: Simon Glass > Acked-by: Marek Vasut > --- Acked-by: Marek Vasut Some of those implementations really make my head spin ... *sigh* . Thank you for cleaning this up a bit ! Best regards, Marek Vasut