diff options
| author | Mao Wenan <maowenan@huawei.com> | 2019-04-16 00:06:51 -0400 |
|---|---|---|
| committer | Boris Ostrovsky <boris.ostrovsky@oracle.com> | 2019-04-25 10:33:59 -0400 |
| commit | 51cf07a7b6cd99d9b910932e2af4e7282782e3fe (patch) | |
| tree | 547c668004a2996e1457d5592a59f44172bda13e | |
| parent | 98105e9a60612a2c5fda45aee69a5d084d280f24 (diff) | |
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: 1107ba885e469 ("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>
| -rw-r--r-- | drivers/xen/xenbus/xenbus_dev_frontend.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/xen/xenbus/xenbus_dev_frontend.c b/drivers/xen/xenbus/xenbus_dev_frontend.c index 0782ff3c2273..faf452d0edf0 100644 --- a/drivers/xen/xenbus/xenbus_dev_frontend.c +++ b/drivers/xen/xenbus/xenbus_dev_frontend.c | |||
| @@ -465,7 +465,6 @@ static int xenbus_write_watch(unsigned msg_type, struct xenbus_file_priv *u) | |||
| 465 | struct watch_adapter *watch; | 465 | struct watch_adapter *watch; |
| 466 | char *path, *token; | 466 | char *path, *token; |
| 467 | int err, rc; | 467 | int err, rc; |
| 468 | LIST_HEAD(staging_q); | ||
| 469 | 468 | ||
| 470 | path = u->u.buffer + sizeof(u->u.msg); | 469 | path = u->u.buffer + sizeof(u->u.msg); |
| 471 | token = memchr(path, 0, u->u.msg.len); | 470 | token = memchr(path, 0, u->u.msg.len); |
| @@ -523,7 +522,6 @@ static ssize_t xenbus_file_write(struct file *filp, | |||
| 523 | uint32_t msg_type; | 522 | uint32_t msg_type; |
| 524 | int rc = len; | 523 | int rc = len; |
| 525 | int ret; | 524 | int ret; |
| 526 | LIST_HEAD(staging_q); | ||
| 527 | 525 | ||
| 528 | /* | 526 | /* |
| 529 | * We're expecting usermode to be writing properly formed | 527 | * We're expecting usermode to be writing properly formed |
