Clang-tidy: enable further tests
[alexxy/gromacs.git] / src / gromacs / mdlib / lincs.cpp
index 5772b2514009dc091724190e433e6c36145c7982..7fcd40c418fbc26873335a809f26f6ed8b2e2598 100644 (file)
@@ -1608,10 +1608,7 @@ Lincs *init_lincs(FILE *fplog, const gmx_mtop_t &mtop,
 
 void done_lincs(Lincs *li)
 {
-    if (li)
-    {
-        delete li;
-    }
+    delete li;
 }
 
 /*! \brief Sets up the work division over the threads. */