]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
libmount: remove unnecessary commented code
authorKarel Zak <kzak@redhat.com>
Mon, 28 Nov 2022 12:44:37 +0000 (13:44 +0100)
committerKarel Zak <kzak@redhat.com>
Tue, 3 Jan 2023 11:58:42 +0000 (12:58 +0100)
libmount/src/optlist.c

index 5bd72d24d2cae76a3d770acae46478753b05c006..2561f1913cd48a32878203499a1ea7f4fc7cf17e 100644 (file)
@@ -88,10 +88,8 @@ struct libmnt_optlist *mnt_new_optlist(void)
 
 void mnt_ref_optlist(struct libmnt_optlist *ls)
 {
-       if (ls) {
+       if (ls)
                ls->refcount++;
-               /*DBG(OPTLIST, ul_debugobj(ls, "ref=%d", ls->refcount));*/
-       }
 }
 
 static void reset_cache(struct optlist_cache *cache)
@@ -113,7 +111,6 @@ void mnt_unref_optlist(struct libmnt_optlist *ls)
        if (ls->refcount > 0)
                return;
 
-       /*DBG(OPTLIST, ul_debugobj(ls, "unref=%d", ls->refcount));*/
        while (!list_empty(&ls->opts)) {
                struct libmnt_opt *opt = list_entry(ls->opts.next, struct libmnt_opt, opts);
                mnt_optlist_remove_opt(ls, opt);
@@ -911,10 +908,6 @@ int mnt_optlist_get_optstr(struct libmnt_optlist *ls, const char **optstr,
 
                cache->optstr = str;
                cache->optstr_ready = 1;
-
-               /*DBG(OPTLIST, ul_debugobj(ls, " optstr %s", str));*/
-       } else {
-               /*DBG(OPTLIST, ul_debugobj(ls, " optstr %s (cached)", *cache));*/
        }
 
        *optstr = cache->optstr;