Fix cppcheck 1.64 warnings
[alexxy/gromacs.git] / src / gromacs / mdlib / nsgrid.c
index 366beca6f992b48d52bd3e8dd5a59d2a93b28dfb..ba3af277874f1744ddf2fa2a0ed70c4791d6e802 100644 (file)
@@ -290,7 +290,7 @@ static void set_grid_sizes(matrix box, rvec izones_x0, rvec izones_x1, real rlis
                      */
                     /* Determine the shift for the corners of the triclinic box */
                     add_tric = izones_size[j]*box[j][i]/box[j][j];
-                    if (dd && dd->ndim == 1 && j == ZZ)
+                    if (dd->ndim == 1 && j == ZZ)
                     {
                         /* With 1D domain decomposition the cg's are not in
                          * the triclinic box, but trilinic x-y and rectangular y-z.