]> granicus.if.org Git - p11-kit/commitdiff
proxy: Remove redundant NULL check
authorPankaj <pankaj.s01@samsung.com>
Tue, 20 Sep 2016 16:09:49 +0000 (18:09 +0200)
committerDaiki Ueno <ueno@gnu.org>
Tue, 13 Dec 2016 09:13:41 +0000 (10:13 +0100)
https://bugs.freedesktop.org/show_bug.cgi?id=93589

p11-kit/proxy.c

index 77e70c0097222e621dcefbc0b2fcc81ffe6bea85..ad3caa554f8a4a63722ff020b24787d8761f3696 100644 (file)
@@ -645,7 +645,7 @@ proxy_C_CloseAllSessions (CK_X_FUNCTION_LIST *self,
                                p11_dict_iterate (state->px->sessions, &iter);
                                count = 0;
                                while (p11_dict_next (&iter, NULL, (void**)&sess)) {
-                                       if (sess->wrap_slot == id && to_close)
+                                       if (sess->wrap_slot == id)
                                                to_close[count++] = sess->wrap_session;
                                }
                        }