diff --git a/src/multipole.h b/src/multipole.h
index 8139dc0548bb94b108d6e32da4b19808998f48d3..e867dfd4e2cc5c9fcd06d7d95dcf76a97689c2b3 100644
--- a/src/multipole.h
+++ b/src/multipole.h
@@ -1049,13 +1049,6 @@ INLINE static void gravity_P2M(struct gravity_tensors *multi,
     vel[2] += gparts[k].v_full[2] * m;
   }
 
-#ifdef PLANETARY_SPH
-  /* Prevent FPE from zero mass with the temporary outside-the-box particles */
-  if (mass == 0.f) {
-    mass = FLT_MIN;
-  }
-#endif  // PLANETARY_SPH
-
   /* Final operation on CoM */
   const double imass = 1.0 / mass;
   com[0] *= imass;