mcctrl/sysfs: add parenthesis around SYSFS_UNLINK_KEEP_ANCESTOR check
! has more priority than &, so !flags & SYSFS_UNLINK_KEEP_ANCESTOR is not very likely. Change to !(flags & SYSFS_UNLINK_KEEP_ANCESTOR)
This commit is contained in:
@ -1207,7 +1207,7 @@ sysfsm_unlink(struct sysfsm_data *sdp, const char *path0, int flags)
|
||||
goto out;
|
||||
}
|
||||
|
||||
if (!flags & SYSFS_UNLINK_KEEP_ANCESTOR) {
|
||||
if (!(flags & SYSFS_UNLINK_KEEP_ANCESTOR)) {
|
||||
cleanup_ancestor(dirp);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user