From: Steve French Date: Wed, 20 Sep 2023 21:04:51 +0000 (-0500) Subject: smb3: remove duplicate error mapping X-Git-Tag: v6.6.17~3864^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6e2e27e47c022b86bd248e301986d461ca449bcf;p=platform%2Fkernel%2Flinux-rpi.git smb3: remove duplicate error mapping In status_to_posix_error STATUS_IO_REPARSE_TAG_NOT_HANDLED was mapped to both -EOPNOTSUPP and also to -EIO but the later one (-EIO) is ignored. Remove the duplicate. Reviewed-by: Paulo Alcantara (SUSE) Signed-off-by: Steve French --- diff --git a/fs/smb/client/smb2maperror.c b/fs/smb/client/smb2maperror.c index 194799d..1a90dd7 100644 --- a/fs/smb/client/smb2maperror.c +++ b/fs/smb/client/smb2maperror.c @@ -877,8 +877,6 @@ static const struct status_to_posix_error smb2_error_map_table[] = { "STATUS_IO_REPARSE_TAG_MISMATCH"}, {STATUS_IO_REPARSE_DATA_INVALID, -EIO, "STATUS_IO_REPARSE_DATA_INVALID"}, - {STATUS_IO_REPARSE_TAG_NOT_HANDLED, -EIO, - "STATUS_IO_REPARSE_TAG_NOT_HANDLED"}, {STATUS_REPARSE_POINT_NOT_RESOLVED, -EIO, "STATUS_REPARSE_POINT_NOT_RESOLVED"}, {STATUS_DIRECTORY_IS_A_REPARSE_POINT, -EIO,