diff options
Diffstat (limited to 'drivers/xen/xenbus/xenbus_dev_frontend.c')
| -rw-r--r-- | drivers/xen/xenbus/xenbus_dev_frontend.c | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/xen/xenbus/xenbus_dev_frontend.c b/drivers/xen/xenbus/xenbus_dev_frontend.c index c1010f018bd8..1e8be12ebb55 100644 --- a/drivers/xen/xenbus/xenbus_dev_frontend.c +++ b/drivers/xen/xenbus/xenbus_dev_frontend.c @@ -364,7 +364,7 @@ out:  static int xenbus_write_watch(unsigned msg_type, struct xenbus_file_priv *u)  { -	struct watch_adapter *watch, *tmp_watch; +	struct watch_adapter *watch;  	char *path, *token;  	int err, rc;  	LIST_HEAD(staging_q); @@ -399,7 +399,7 @@ static int xenbus_write_watch(unsigned msg_type, struct xenbus_file_priv *u)  		}  		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)) {  				unregister_xenbus_watch(&watch->watch);  | 
