OSDN Git Service

sheepdog: cleanup repeated expression
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 23 May 2018 16:07:20 +0000 (18:07 +0200)
committerJeff Cody <jcody@redhat.com>
Tue, 5 Jun 2018 14:15:12 +0000 (10:15 -0400)
commit03b036cc0ca3362ff1aacd70315f5e53f4234f5c
tree62bfd0a659349dc7865d2529839cc5ed9ffdfa2b
parent41feb5b955f0d7c9d071b2c5adbc404ae2895c7a
sheepdog: cleanup repeated expression

The expression "SD_INODE_SIZE - sizeof(inode.data_vdi_id)" already has a macro
defined for the same value (though with a nicer definition using offsetof).
Replace it.

Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Fam Zheng <famz@redhat.com>
Reviewed-by: Jeff Cody <jcody@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Message-Id: <20180523160721.14018-2-pbonzini@redhat.com>
Signed-off-by: Jeff Cody <jcody@redhat.com>
block/sheepdog.c