Fix Coverity ID 626: DEADCODE
[ira/wip.git] / nsswitch / libwbclient / wbc_pam.c
index 92c66436317d2d09b189dddc6fd1cb3d9c0ac14e..61ce2a12d2fd66380e5e17d11ecf170413673695 100644 (file)
@@ -810,11 +810,6 @@ wbcErr wbcChangeUserPasswordEx(const struct wbcChangePasswordParams *params,
                break;
        }
 
-       if (cmd == 0) {
-               wbc_status = WBC_ERR_INVALID_PARAM;
-               BAIL_ON_WBC_ERROR(wbc_status);
-       }
-
        /* Send request */
 
        wbc_status = wbcRequestResponse(cmd,