xenbus: drop useless LIST_HEAD in xenbus_write_watch() and xenbus_file_write()

Drop LIST_HEAD where the variable it declares is never used.

The declarations were introduced with the file, but the declared
variables were not used.

Fixes: 1107ba885e ("xen: add xenfs to allow usermode <-> Xen interaction")
Signed-off-by: Mao Wenan <maowenan@huawei.com>
Reviewed-by: Juergen Gross <jgross@suse.com>
Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
This commit is contained in:
Mao Wenan 2019-04-16 12:06:51 +08:00 committed by Boris Ostrovsky
parent 98105e9a60
commit 51cf07a7b6
1 changed files with 0 additions and 2 deletions

View File

@ -465,7 +465,6 @@ static int xenbus_write_watch(unsigned msg_type, struct xenbus_file_priv *u)
struct watch_adapter *watch; struct watch_adapter *watch;
char *path, *token; char *path, *token;
int err, rc; int err, rc;
LIST_HEAD(staging_q);
path = u->u.buffer + sizeof(u->u.msg); path = u->u.buffer + sizeof(u->u.msg);
token = memchr(path, 0, u->u.msg.len); token = memchr(path, 0, u->u.msg.len);
@ -523,7 +522,6 @@ static ssize_t xenbus_file_write(struct file *filp,
uint32_t msg_type; uint32_t msg_type;
int rc = len; int rc = len;
int ret; int ret;
LIST_HEAD(staging_q);
/* /*
* We're expecting usermode to be writing properly formed * We're expecting usermode to be writing properly formed