Re: [U-Boot] [PATCH v2 03/29] stdio: Remove redundant code around stdio_register() calls

2014-07-13 Thread Simon Glass
Hi Marek, On 10 July 2014 17:23, Marek Vasut ma...@denx.de wrote: 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

Re: [U-Boot] [PATCH v2 03/29] stdio: Remove redundant code around stdio_register() calls

2014-07-10 Thread Marek Vasut
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

[U-Boot] [PATCH v2 03/29] stdio: Remove redundant code around stdio_register() calls

2014-07-08 Thread Simon Glass
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