*/
void netback_disconnect_accelerator(int id, const char *eth_name)
{
- struct netback_accelerator *accelerator, *next;
+ struct netback_accelerator *accelerator;
mutex_lock(&accelerators_mutex);
- list_for_each_entry_safe(accelerator, next, &accelerators_list, link) {
+ list_for_each_entry(accelerator, &accelerators_list, link) {
if (!strcmp(eth_name, accelerator->eth_name)) {
xenbus_for_each_backend
(accelerator, netback_accelerator_remove_backend);
spin_lock_irqsave(&vpci_dev->lock, flags);
for (slot = 0; slot < PCI_SLOT_MAX; slot++) {
- struct pci_dev_entry *e, *tmp;
- list_for_each_entry_safe(e, tmp, &vpci_dev->dev_list[slot],
- list) {
+ struct pci_dev_entry *e;
+
+ list_for_each_entry(e, &vpci_dev->dev_list[slot], list) {
if (e->dev == dev) {
list_del(&e->list);
found_dev = e->dev;
void *reply = NULL;
LIST_HEAD(queue);
char *path, *token;
- struct watch_adapter *watch, *tmp_watch;
+ struct watch_adapter *watch;
int err, rc = len;
if (!is_xenstored_ready())
list_add(&watch->list, &u->watches);
} else {
- list_for_each_entry_safe(watch, tmp_watch,
- &u->watches, list) {
+ list_for_each_entry(watch, &u->watches, list) {
if (!strcmp(watch->token, token) &&
!strcmp(watch->watch.node, path))
{