[libvirt PATCH 06/14] virsh: virshStreamSourceSkip: remove unused 'off'

Martin Kletzander mkletzan at redhat.com
Thu Sep 24 08:31:26 UTC 2020


On Wed, Sep 23, 2020 at 08:14:55PM +0200, Ján Tomko wrote:
>Signed-off-by: Ján Tomko <jtomko at redhat.com>
>---
> tools/virsh-util.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>

Reviewed-by: Martin Kletzander <mkletzan at redhat.com>

>diff --git a/tools/virsh-util.c b/tools/virsh-util.c
>index b8b0f98066..af7ed55348 100644
>--- a/tools/virsh-util.c
>+++ b/tools/virsh-util.c
>@@ -173,9 +173,8 @@ virshStreamSourceSkip(virStreamPtr st G_GNUC_UNUSED,
> {
>     virshStreamCallbackDataPtr cbData = opaque;
>     int fd = cbData->fd;
>-    off_t cur;
>
>-    if ((cur = lseek(fd, offset, SEEK_CUR)) == (off_t) -1)
>+    if (lseek(fd, offset, SEEK_CUR) == (off_t) -1)
>         return -1;
>
>     return 0;
>-- 
>2.26.2
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20200924/c5e2d907/attachment-0001.sig>


More information about the libvir-list mailing list