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

Merge branch 'xfs-coccinelle-cleanups' into for-next

+9 -24
+1 -5
fs/xfs/libxfs/xfs_bmap.c
··· 5589 5589 XFS_WANT_CORRUPTED_GOTO(i == 1, out_error); 5590 5590 5591 5591 got.br_startoff = startoff; 5592 - error = xfs_bmbt_update(cur, got.br_startoff, got.br_startblock, 5592 + return xfs_bmbt_update(cur, got.br_startoff, got.br_startblock, 5593 5593 got.br_blockcount, got.br_state); 5594 - if (error) 5595 - return error; 5596 - 5597 - return 0; 5598 5594 5599 5595 out_error: 5600 5596 return error;
+1 -5
fs/xfs/libxfs/xfs_ialloc.c
··· 1134 1134 XFS_WANT_CORRUPTED_RETURN((rec.ir_free == frec->ir_free) && 1135 1135 (rec.ir_freecount == frec->ir_freecount)); 1136 1136 1137 - error = xfs_inobt_update(cur, &rec); 1138 - if (error) 1139 - return error; 1140 - 1141 - return 0; 1137 + return xfs_inobt_update(cur, &rec); 1142 1138 } 1143 1139 1144 1140 /*
+1 -5
fs/xfs/xfs_file.c
··· 930 930 { 931 931 struct inode *inode = file_inode(file); 932 932 xfs_inode_t *ip = XFS_I(inode); 933 - int error; 934 933 size_t bufsize; 935 934 936 935 /* ··· 946 947 */ 947 948 bufsize = (size_t)min_t(loff_t, 32768, ip->i_d.di_size); 948 949 949 - error = xfs_readdir(ip, ctx, bufsize); 950 - if (error) 951 - return error; 952 - return 0; 950 + return xfs_readdir(ip, ctx, bufsize); 953 951 } 954 952 955 953 STATIC int
+5 -7
fs/xfs/xfs_qm.c
··· 1747 1747 xfs_iunlock(ip, lockflags); 1748 1748 if (O_udqpp) 1749 1749 *O_udqpp = uq; 1750 - else if (uq) 1750 + else 1751 1751 xfs_qm_dqrele(uq); 1752 1752 if (O_gdqpp) 1753 1753 *O_gdqpp = gq; 1754 - else if (gq) 1754 + else 1755 1755 xfs_qm_dqrele(gq); 1756 1756 if (O_pdqpp) 1757 1757 *O_pdqpp = pq; 1758 - else if (pq) 1758 + else 1759 1759 xfs_qm_dqrele(pq); 1760 1760 return 0; 1761 1761 1762 1762 error_rele: 1763 - if (gq) 1764 - xfs_qm_dqrele(gq); 1765 - if (uq) 1766 - xfs_qm_dqrele(uq); 1763 + xfs_qm_dqrele(gq); 1764 + xfs_qm_dqrele(uq); 1767 1765 return error; 1768 1766 } 1769 1767
+1 -2
fs/xfs/xfs_super.c
··· 793 793 out_free_ddev_targ: 794 794 xfs_free_buftarg(mp, mp->m_ddev_targp); 795 795 out_close_rtdev: 796 - if (rtdev) 797 - xfs_blkdev_put(rtdev); 796 + xfs_blkdev_put(rtdev); 798 797 out_close_logdev: 799 798 if (logdev && logdev != ddev) 800 799 xfs_blkdev_put(logdev);