]> git.karo-electronics.de Git - linux-beck.git/commit
drivers/vfio: Rework offsetofend()
authorGavin Shan <gwshan@linux.vnet.ibm.com>
Fri, 30 May 2014 17:35:54 +0000 (11:35 -0600)
committerAlex Williamson <alex.williamson@redhat.com>
Fri, 30 May 2014 17:35:54 +0000 (11:35 -0600)
commitb13460b92093b29347e99d6c3242e350052b62cd
tree53950c28dd2468d9a6654edc1c4e837c9b33c391
parentc8dbca165bb090f926996a572ea2b5b577b34b70
drivers/vfio: Rework offsetofend()

The macro offsetofend() introduces unnecessary temporary variable
"tmp". The patch avoids that and saves a bit memory in stack.

Signed-off-by: Gavin Shan <gwshan@linux.vnet.ibm.com>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
include/linux/vfio.h