cppcheck: don't check NULL pointer before freeing them
[lttng-tools.git] / src / common / compat / poll.h
index 49673cd5af643e40a10aa9173d1ff4cf489d0802..9e889767f8321a05ea23f97c211086cf0c6e3836 100644 (file)
@@ -43,9 +43,7 @@ extern unsigned int poll_max_size;
  */
 static inline void __lttng_poll_free(void *events)
 {
-       if (events) {
-               free(events);
-       }
+       free(events);
 }
 
 /*
This page took 0.023119 seconds and 4 git commands to generate.