Speed up remote bitbang.
[fw/openocd] / src / helper / binarybuffer.c
index 3d35702ac96ed0829b9d11b6e51f030f15c48a80..e2dfa87b606aeafdb1fb04459291947117516991 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 */
@@ -222,7 +222,7 @@ static void str_radix_guess(const char **_str, unsigned *_str_len,
        unsigned *_radix)
 {
        unsigned radix = *_radix;
-       if (0 != radix)
+       if (radix != 0)
                return;
        const char *str = *_str;
        unsigned str_len = *_str_len;