mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-04 10:40:15 +02:00 
			
		
		
		
	virtio_net: Use virtio_find_vqs_ctx() helper
virtio_find_vqs_ctx() is defined but never be called currently, it is the right place to use it. Signed-off-by: Xianting Tian <xianting.tian@linux.alibaba.com> Reviewed-by: Stefano Garzarella <sgarzare@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
		
							parent
							
								
									10ed7ce42b
								
							
						
					
					
						commit
						a2f7dc00ea
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -2847,8 +2847,8 @@ static int virtnet_find_vqs(struct virtnet_info *vi)
 | 
			
		|||
			ctx[rxq2vq(i)] = true;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	ret = vi->vdev->config->find_vqs(vi->vdev, total_vqs, vqs, callbacks,
 | 
			
		||||
					 names, ctx, NULL);
 | 
			
		||||
	ret = virtio_find_vqs_ctx(vi->vdev, total_vqs, vqs, callbacks,
 | 
			
		||||
				  names, ctx, NULL);
 | 
			
		||||
	if (ret)
 | 
			
		||||
		goto err_find;
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue