Skip to content

Commit 1b03117

Browse files
committed
vhost-vdpa: remove the unused vhost_vdpa_get_acked_features()
No user for this helper, let's remove it. Signed-off-by: Jason Wang <[email protected]>
1 parent c33f23a commit 1b03117

File tree

2 files changed

+0
-10
lines changed

2 files changed

+0
-10
lines changed

include/net/vhost-vdpa.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
#define TYPE_VHOST_VDPA "vhost-vdpa"
1616

1717
struct vhost_net *vhost_vdpa_get_vhost_net(NetClientState *nc);
18-
uint64_t vhost_vdpa_get_acked_features(NetClientState *nc);
1918

2019
extern const int vdpa_feature_bits[];
2120

net/vhost-vdpa.c

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -68,15 +68,6 @@ VHostNetState *vhost_vdpa_get_vhost_net(NetClientState *nc)
6868
return s->vhost_net;
6969
}
7070

71-
uint64_t vhost_vdpa_get_acked_features(NetClientState *nc)
72-
{
73-
VhostVDPAState *s = DO_UPCAST(VhostVDPAState, nc, nc);
74-
assert(nc->info->type == NET_CLIENT_DRIVER_VHOST_VDPA);
75-
s->acked_features = vhost_net_get_acked_features(s->vhost_net);
76-
77-
return s->acked_features;
78-
}
79-
8071
static int vhost_vdpa_net_check_device_id(struct vhost_net *net)
8172
{
8273
uint32_t device_id;

0 commit comments

Comments
 (0)