diff options
author | Campbell Barton <ideasman42@gmail.com> | 2020-04-20 05:08:29 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2020-04-20 05:15:49 +0300 |
commit | 2a96e8be39876dc42201dd640bbf57c8396bd542 (patch) | |
tree | 9cf15bacb15084b6cfbf24337d812773a7ee2efa /source/blender/editors/physics/physics_fluid.c | |
parent | 9d3b1d361d970a471436858f5d5a8e722b100dd9 (diff) |
Cleanup: redundant parenthesis, NULL checks
Diffstat (limited to 'source/blender/editors/physics/physics_fluid.c')
-rw-r--r-- | source/blender/editors/physics/physics_fluid.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/physics/physics_fluid.c b/source/blender/editors/physics/physics_fluid.c index eb808398254..5550f1a63c8 100644 --- a/source/blender/editors/physics/physics_fluid.c +++ b/source/blender/editors/physics/physics_fluid.c @@ -361,7 +361,7 @@ static void fluid_bake_endjob(void *customdata) RPT_INFO, "Fluid: %s complete! (%.2f)", job->name, PIL_check_seconds_timer() - job->start); } else { - if (mds->error != NULL && mds->error[0] != '\0') { + if (mds->error[0] != '\0') { WM_reportf(RPT_ERROR, "Fluid: %s failed: %s", job->name, mds->error); } else { /* User canceled the bake */ @@ -473,7 +473,7 @@ static void fluid_free_endjob(void *customdata) RPT_INFO, "Fluid: %s complete! (%.2f)", job->name, PIL_check_seconds_timer() - job->start); } else { - if (mds->error != NULL && mds->error[0] != '\0') { + if (mds->error[0] != '\0') { WM_reportf(RPT_ERROR, "Fluid: %s failed: %s", job->name, mds->error); } else { /* User canceled the free job */ |