(sftpfs_open_socket): remove useless condition.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andrew Borodin 2014-08-05 09:40:25 +04:00
parent 87fb484c21
commit 9949fa74b6

View File

@ -79,11 +79,7 @@ sftpfs_open_socket (struct vfs_s_super *super, GError ** mcerror)
return -1; return -1;
} }
if (sprintf (port, "%hu", (unsigned short) super->path_element->port) < 0) sprintf (port, "%hu", (unsigned short) super->path_element->port);
{
mc_propagate_error (mcerror, -1, "%s", _("sftp: Invalid port value."));
return -1;
}
tty_enable_interrupt_key (); /* clear the interrupt flag */ tty_enable_interrupt_key (); /* clear the interrupt flag */