]> Git Repo - linux.git/blobdiff - drivers/vhost/net.c
treewide: Remove uninitialized_var() usage
[linux.git] / drivers / vhost / net.c
index e992decfec534a7ed6659b08854ece73f1aa7602..eea902b83afebde0907d1036825b650db8ff6fea 100644 (file)
@@ -862,7 +862,7 @@ static void handle_tx_zerocopy(struct vhost_net *net, struct socket *sock)
        struct tun_msg_ctl ctl;
        size_t len, total_len = 0;
        int err;
-       struct vhost_net_ubuf_ref *uninitialized_var(ubufs);
+       struct vhost_net_ubuf_ref *ubufs;
        bool zcopy_used;
        int sent_pkts = 0;
 
@@ -1042,7 +1042,7 @@ static int get_rx_bufs(struct vhost_virtqueue *vq,
        /* len is always initialized before use since we are always called with
         * datalen > 0.
         */
-       u32 uninitialized_var(len);
+       u32 len;
 
        while (datalen > 0 && headcount < quota) {
                if (unlikely(seg >= UIO_MAXIOV)) {
@@ -1099,7 +1099,7 @@ static void handle_rx(struct vhost_net *net)
 {
        struct vhost_net_virtqueue *nvq = &net->vqs[VHOST_NET_VQ_RX];
        struct vhost_virtqueue *vq = &nvq->vq;
-       unsigned uninitialized_var(in), log;
+       unsigned in, log;
        struct vhost_log *vq_log;
        struct msghdr msg = {
                .msg_name = NULL,
This page took 0.040226 seconds and 4 git commands to generate.