openocd: remove NULL comparisons with checkpatch [1/2]
[fw/openocd] / src / helper / replacements.c
index 68032b7fd5654a4ed47ea6360b05a6d35f60ff06..86ddd8075837a721d7245027528e71c2e2a2abfa 100644 (file)
@@ -145,7 +145,7 @@ int win_select(int max_fd, fd_set *rfds, fd_set *wfds, fd_set *efds, struct time
        struct timeval tvslice;
        int retcode;
 
-#define SAFE_FD_ISSET(fd, set)  (set != NULL && FD_ISSET(fd, set))
+#define SAFE_FD_ISSET(fd, set)  (set && FD_ISSET(fd, set))
 
        /* calculate how long we need to wait in milliseconds */
        if (!tv)