File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed
Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -771,22 +771,20 @@ static void drop_nop(MountEntry *m, size_t *n) {
771771
772772 /* Only suppress such subtrees for READONLY, READWRITE and READWRITE_IMPLICIT entries */
773773 if (IN_SET (f -> mode , READONLY , READWRITE , READWRITE_IMPLICIT )) {
774- MountEntry * p ;
775- bool found = false;
774+ MountEntry * found = NULL ;
776775
777776 /* Now let's find the first parent of the entry we are looking at. */
778- for (p = t - 1 ; p >= m ; p -- ) {
777+ for (MountEntry * p = PTR_SUB1 ( t , m ) ; p ; p = PTR_SUB1 ( p , m ))
779778 if (path_startswith (mount_entry_path (f ), mount_entry_path (p ))) {
780- found = true ;
779+ found = p ;
781780 break ;
782781 }
783- }
784782
785783 /* We found it, let's see if it's the same mode, if so, we can drop this entry */
786- if (found && p -> mode == f -> mode ) {
784+ if (found && found -> mode == f -> mode ) {
787785 log_debug ("%s (%s) is made redundant by %s (%s)" ,
788786 mount_entry_path (f ), mount_mode_to_string (f -> mode ),
789- mount_entry_path (p ), mount_mode_to_string (p -> mode ));
787+ mount_entry_path (found ), mount_mode_to_string (found -> mode ));
790788 mount_entry_done (f );
791789 continue ;
792790 }
You can’t perform that action at this time.
0 commit comments