diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2016-09-19 11:18:10 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2016-09-19 11:18:10 +0300 |
commit | b19c6f8f432590aa60cf49ddb2bf95e087856b0e (patch) | |
tree | 8fdd6185e1ac5d62b1d66975d76832a3f5217d00 /source/blender/blenlib/intern/listbase.c | |
parent | 722226b61063a798fd3775e1cc4234045c3e1dbb (diff) |
Remove null-check of argument which is attributed as non-null
This was logically incorrect and was causing warning and compilation
errors with strict compiler flags.
Diffstat (limited to 'source/blender/blenlib/intern/listbase.c')
-rw-r--r-- | source/blender/blenlib/intern/listbase.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenlib/intern/listbase.c b/source/blender/blenlib/intern/listbase.c index d6c0219ea23..c9bf4976ae8 100644 --- a/source/blender/blenlib/intern/listbase.c +++ b/source/blender/blenlib/intern/listbase.c @@ -356,7 +356,7 @@ bool BLI_listbase_link_move(ListBase *listbase, void *vlink, int step) Link *hook = link; const bool is_up = step < 0; - if (step == 0 || vlink == NULL) { + if (step == 0) { return false; } BLI_assert(BLI_findindex(listbase, link) != -1); |