openocd: remove NULL comparisons with checkpatch [2/2]
Patch generated automatically through a modified checkpatch that detects the patterns if (NULL == symbol) if (NULL != symbol) and through flags "--types COMPARISON_TO_NULL --fix-inplace". The unmodified checkpatch detects this pattern as Yoda condition, but it's odd fixing it as Yoda condition and then again as NULL comparison. This triggered the modification to the script. Change-Id: I5fe984a85e9c4fc799f049211797aef891ebce18 Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com> Reviewed-on: http://openocd.zylin.com/6352 Tested-by: jenkins
This commit is contained in:
@@ -53,7 +53,7 @@ static const char hex_digits[] = {
|
||||
|
||||
void *buf_cpy(const void *from, void *_to, unsigned size)
|
||||
{
|
||||
if (NULL == from || NULL == _to)
|
||||
if (!from || !_to)
|
||||
return NULL;
|
||||
|
||||
/* copy entire buffer */
|
||||
|
||||
Reference in New Issue
Block a user