mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-21 20:15:17 +00:00
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:
parent
ef2532fcbd
commit
ce5eb7ecac
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user