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.

Merge tag 'configfs-for-v6.18' of git://git.kernel.org/pub/scm/linux/kernel/git/a.hindborg/linux

Pull configfs update from Andreas Hindborg:
"Just a very small refactoring to use PTR_ERR_OR_ZERO()"

* tag 'configfs-for-v6.18' of git://git.kernel.org/pub/scm/linux/kernel/git/a.hindborg/linux:
configfs: use PTR_ERR_OR_ZERO() to simplify code

+1 -4
+1 -4
fs/configfs/dir.c
··· 1601 1601 err = -ENOENT; 1602 1602 if (configfs_dirent_is_ready(parent_sd)) { 1603 1603 file->private_data = configfs_new_dirent(parent_sd, NULL, 0, NULL); 1604 - if (IS_ERR(file->private_data)) 1605 - err = PTR_ERR(file->private_data); 1606 - else 1607 - err = 0; 1604 + err = PTR_ERR_OR_ZERO(file->private_data); 1608 1605 } 1609 1606 inode_unlock(d_inode(dentry)); 1610 1607