Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

ntfs: fix ignoring unreachable code warnings

Detected by Smatch.

inode.c:1796 load_attribute_list_mount() warn:
ignoring unreachable code.

Signed-off-by: Hyunchul Lee <hyc.lee@gmail.com>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>

authored by

Hyunchul Lee and committed by
Namjae Jeon
77f58db7 068a35fd

+2 -7
+2 -7
fs/ntfs/inode.c
··· 1761 1761 /* The attribute list cannot be sparse. */ 1762 1762 if (lcn < 0) { 1763 1763 ntfs_error(sb, "ntfs_rl_vcn_to_lcn() failed. Cannot read attribute list."); 1764 - goto err_out; 1764 + return -EIO; 1765 1765 } 1766 1766 1767 1767 rl_byte_off = ntfs_cluster_to_bytes(vol, lcn); ··· 1774 1774 round_up(rl_byte_len, SECTOR_SIZE)); 1775 1775 if (err) { 1776 1776 ntfs_error(sb, "Cannot read attribute list."); 1777 - goto err_out; 1777 + return -EIO; 1778 1778 } 1779 1779 1780 1780 if (al + rl_byte_len >= al_end) { ··· 1792 1792 } 1793 1793 done: 1794 1794 return err; 1795 - /* Real overflow! */ 1796 - ntfs_error(sb, "Attribute list buffer overflow. Read attribute list is truncated."); 1797 - err_out: 1798 - err = -EIO; 1799 - goto done; 1800 1795 } 1801 1796 1802 1797 /*