From b19c6f8f432590aa60cf49ddb2bf95e087856b0e Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Mon, 19 Sep 2016 10:18:10 +0200 Subject: 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. --- source/blender/blenlib/intern/listbase.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/blenlib/intern/listbase.c') 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); -- cgit v1.2.3