openocd: remove NULL comparisons with checkpatch [2/2]
[fw/openocd] / src / helper / binarybuffer.c
index 3d35702ac96ed0829b9d11b6e51f030f15c48a80..49e347b6e1df3ef4e68e2b86225901df288074c6 100644 (file)
@@ -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 */