summaryrefslogtreecommitdiff
path: root/include/sysemu/rng.h
diff options
context:
space:
mode:
authorLadi Prosek <lprosek@redhat.com>2016-03-03 09:37:15 +0100
committerAmit Shah <amit.shah@redhat.com>2016-03-03 17:42:26 +0530
commit3c52ddcdc548e7fbe65112d8a7bdc9cd105b4750 (patch)
tree3ba2b5414ac0d5e80b419e292eb40dca2d983914 /include/sysemu/rng.h
parent750cf86932cd16bd881bba372738c1c6f17fc189 (diff)
downloadqemu-3c52ddcdc548e7fbe65112d8a7bdc9cd105b4750.tar.gz
rng: remove the unused request cancellation code
rng_backend_cancel_requests had no callers and none of the code deleted in this commit ever ran. Signed-off-by: Ladi Prosek <lprosek@redhat.com> Reviewed-by: Amit Shah <amit.shah@redhat.com> Message-Id: <1456994238-9585-2-git-send-email-lprosek@redhat.com> Signed-off-by: Amit Shah <amit.shah@redhat.com>
Diffstat (limited to 'include/sysemu/rng.h')
-rw-r--r--include/sysemu/rng.h11
1 files changed, 0 insertions, 11 deletions
diff --git a/include/sysemu/rng.h b/include/sysemu/rng.h
index 858be8cef4..87b3ebec99 100644
--- a/include/sysemu/rng.h
+++ b/include/sysemu/rng.h
@@ -37,7 +37,6 @@ struct RngBackendClass
void (*request_entropy)(RngBackend *s, size_t size,
EntropyReceiveFunc *receive_entropy, void *opaque);
- void (*cancel_requests)(RngBackend *s);
void (*opened)(RngBackend *s, Error **errp);
};
@@ -68,14 +67,4 @@ struct RngBackend
void rng_backend_request_entropy(RngBackend *s, size_t size,
EntropyReceiveFunc *receive_entropy,
void *opaque);
-
-/**
- * rng_backend_cancel_requests:
- * @s: the backend to cancel all pending requests in
- *
- * Cancels all pending requests submitted by @rng_backend_request_entropy. This
- * should be used by a device during reset or in preparation for live migration
- * to stop tracking any request.
- */
-void rng_backend_cancel_requests(RngBackend *s);
#endif