code cleanup: remove paranoid NULL checks (these cases would crash earlier of the...
[blender.git] / source / blender / editors / armature / editarmature.c
index 738fdc229fbdbfd9d3311803687102746e2ecd40..cb52d88f9854b1448f2b38ae35459110207b4d09 100644 (file)
@@ -4589,7 +4589,9 @@ void ED_pose_deselectall(Object *ob, int test)
        int selectmode = 0;
        
        /* we call this from outliner too */
-       if (ELEM(NULL, ob, ob->pose)) return;
+       if (ob->pose == NULL) {
+               return;
+       }
        
        /*      Determine if we're selecting or deselecting     */
        if (test == 1) {