From 9949fa74b6537fd7f5f2f41924e45870ae32eb0f Mon Sep 17 00:00:00 2001 From: Andrew Borodin Date: Tue, 5 Aug 2014 09:40:25 +0400 Subject: [PATCH] (sftpfs_open_socket): remove useless condition. Signed-off-by: Andrew Borodin --- src/vfs/sftpfs/connection.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/vfs/sftpfs/connection.c b/src/vfs/sftpfs/connection.c index 136d6e89d..c5c54cb68 100644 --- a/src/vfs/sftpfs/connection.c +++ b/src/vfs/sftpfs/connection.c @@ -79,11 +79,7 @@ sftpfs_open_socket (struct vfs_s_super *super, GError ** mcerror) return -1; } - if (sprintf (port, "%hu", (unsigned short) super->path_element->port) < 0) - { - mc_propagate_error (mcerror, -1, "%s", _("sftp: Invalid port value.")); - return -1; - } + sprintf (port, "%hu", (unsigned short) super->path_element->port); tty_enable_interrupt_key (); /* clear the interrupt flag */