]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
virtio_vdpa: fix misleading return in void function
authorAlok Tiwari <alok.a.tiwari@oracle.com>
Wed, 1 Oct 2025 19:16:50 +0000 (12:16 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 19 Jan 2026 12:09:35 +0000 (13:09 +0100)
[ Upstream commit e40b6abe0b1247d43bc61942aa7534fca7209e44 ]

virtio_vdpa_set_status() is declared as returning void, but it used
"return vdpa_set_status()" Since vdpa_set_status() also returns
void, the return statement is unnecessary and misleading.
Remove it.

Fixes: c043b4a8cf3b ("virtio: introduce a vDPA based transport")
Signed-off-by: Alok Tiwari <alok.a.tiwari@oracle.com>
Message-Id: <20251001191653.1713923-1-alok.a.tiwari@oracle.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/virtio/virtio_vdpa.c

index a85a10d65973f347481adadaab8ed5c0a51801b8..af085b3df4562d45ace93cbdee3db0e3f9267e26 100644 (file)
@@ -92,7 +92,7 @@ static void virtio_vdpa_set_status(struct virtio_device *vdev, u8 status)
 {
        struct vdpa_device *vdpa = vd_get_vdpa(vdev);
 
-       return vdpa_set_status(vdpa, status);
+       vdpa_set_status(vdpa, status);
 }
 
 static void virtio_vdpa_reset(struct virtio_device *vdev)