diff options
author | Mike Erwin <significant.bit@gmail.com> | 2016-07-31 08:22:36 +0300 |
---|---|---|
committer | Mike Erwin <significant.bit@gmail.com> | 2016-07-31 08:22:36 +0300 |
commit | fc36c2f70e13762bbd8e985a2e9435a0423a6db4 (patch) | |
tree | 7cc56c464158c2cced215321089dda0633423f65 /source/blender/modifiers | |
parent | 6fffe6cfcc1b3bef89b9e7a5546897276c71c3d8 (diff) |
simplify redundant conditionals
The redundant terms were harmless but check an expression we already
know to be true (from earlier in the same conditional).
Found by PVS-Studio T48917
Diffstat (limited to 'source/blender/modifiers')
-rw-r--r-- | source/blender/modifiers/intern/MOD_fluidsim_util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/modifiers/intern/MOD_fluidsim_util.c b/source/blender/modifiers/intern/MOD_fluidsim_util.c index 77fbb482f8b..ffbbb1b0745 100644 --- a/source/blender/modifiers/intern/MOD_fluidsim_util.c +++ b/source/blender/modifiers/intern/MOD_fluidsim_util.c @@ -525,7 +525,7 @@ DerivedMesh *fluidsimModifier_do(FluidsimModifierData *fluidmd, Scene *scene, return dm; /* sanity check */ - if (!fluidmd || (fluidmd && !fluidmd->fss)) + if (!fluidmd || !fluidmd->fss) return dm; fss = fluidmd->fss; |