Skip to content

Commit

Permalink
examples/vhost_crypto: remove unused function
Browse files Browse the repository at this point in the history
[ upstream commit be7a951 ]

This patch tries to fix the coverity issue of unchecked
return value. Since the function that causes the problem
is unused, it is removed completely.

Coverity issue: 336816
Fixes: f518821 ("examples/vhost_crypto: add sample application")

Signed-off-by: Fan Zhang <roy.fan.zhang@intel.com>
Reviewed-by: Jens Freimann <jfreimann@redhat.com>
Acked-by: Marko Kovacevic <marko.kovacevic@intel.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
  • Loading branch information
Fan Zhang authored and kevintraynor committed Jun 24, 2019
1 parent 838b3d3 commit 7c054a7
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions examples/vhost_crypto/main.c
Expand Up @@ -352,12 +352,6 @@ static const struct vhost_device_ops virtio_crypto_device_ops = {
.destroy_device = destroy_device,
};

__attribute__((unused))
static void clrscr(void)
{
system("@cls||clear");
}

static int
vhost_crypto_worker(void *arg)
{
Expand Down

0 comments on commit 7c054a7

Please sign in to comment.