]> err.no Git - linux-2.6/blobdiff - drivers/net/ppp_generic.c
[PATCH] md: Allow raid 'layout' to be read and set via sysfs
[linux-2.6] / drivers / net / ppp_generic.c
index 01cd8ec751ea4b7b5b6d023257776725b22f3907..d643a097faa5cd8de1a234179d17ab55aa336ed3 100644 (file)
@@ -2578,8 +2578,7 @@ ppp_find_channel(int unit)
 
        list_for_each_entry(pch, &new_channels, list) {
                if (pch->file.index == unit) {
-                       list_del(&pch->list);
-                       list_add(&pch->list, &all_channels);
+                       list_move(&pch->list, &all_channels);
                        return pch;
                }
        }