]> git.baikalelectronics.ru Git - kernel.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)
commit4be5aa2dabbc9a3fa39c5a0fcf4b8756ba2e8830
tree53950c28dd2468d9a6654edc1c4e837c9b33c391
parentbe82895aede54000ad3252b4e6c595eb65ac536c
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