virsh: virshStreamSourceSkip: remove unused 'off'

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
This commit is contained in:
Ján Tomko 2020-09-23 19:57:09 +02:00
parent ef2532fcbd
commit ce5eb7ecac

View File

@ -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;