Presumably it isn't possible to have empty lists here, but my static
checker doesn't know that and complains that "ep" can be used
uninitialized.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Nilesh Javali <nilesh.javali@qlogic.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
 {
        struct list_head *list;
        struct list_head *tmp;
-       struct bnx2i_endpoint *ep;
+       struct bnx2i_endpoint *ep = NULL;
 
        read_lock_bh(&hba->ep_rdwr_lock);
        list_for_each_safe(list, tmp, &hba->ep_ofld_list) {
 {
        struct list_head *list;
        struct list_head *tmp;
-       struct bnx2i_endpoint *ep;
+       struct bnx2i_endpoint *ep = NULL;
 
        read_lock_bh(&hba->ep_rdwr_lock);
        list_for_each_safe(list, tmp, &hba->ep_destroy_list) {