From 0d51ab8a3e96cca03cdca31665bfacd44d77e3c0 Mon Sep 17 00:00:00 2001 From: Thomas Guillem Date: Thu, 14 Apr 2022 14:09:06 +0200 Subject: [PATCH] smb2: return errno directly No changes since this function is only checked for != 0 (for now). --- modules/access/smb2.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/access/smb2.c b/modules/access/smb2.c index b075944941..51f23243ca 100644 --- a/modules/access/smb2.c +++ b/modules/access/smb2.c @@ -233,8 +233,7 @@ vlc_smb2_mainloop(struct vlc_smb2_op *op) } } - int ret = op->error_status == 0 ? 0 : -1; - return ret; + return op->error_status; } #define VLC_SMB2_GENERIC_CB() \