summaryrefslogtreecommitdiff
path: root/src/driver
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-10-25 22:15:49 -0400
committermidipix <writeonce@midipix.org>2016-11-11 00:22:52 -0500
commit4f02fe59bc5fd8cd9689a505c2ca049ebfc43e34 (patch)
tree58e345e6d82700e3962bf0ce3b54503a88643958 /src/driver
parent2c8758ec5e10b1a5606521ec7bc259caca209edb (diff)
downloadmdso-4f02fe59bc5fd8cd9689a505c2ca049ebfc43e34.tar.bz2
mdso-4f02fe59bc5fd8cd9689a505c2ca049ebfc43e34.tar.xz
mdso_free_driver_ctx(): fix readability.
Diffstat (limited to 'src/driver')
-rw-r--r--src/driver/mdso_driver_ctx.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/driver/mdso_driver_ctx.c b/src/driver/mdso_driver_ctx.c
index d100c0a..8cff01d 100644
--- a/src/driver/mdso_driver_ctx.c
+++ b/src/driver/mdso_driver_ctx.c
@@ -301,8 +301,8 @@ void mdso_free_driver_ctx(struct mdso_driver_ctx * ctx)
uintptr_t addr;
if (ctx) {
- addr = (uintptr_t)ctx - offsetof(struct mdso_driver_ctx_alloc,ctx);
- addr = addr - offsetof(struct mdso_driver_ctx_impl,ctx);
+ addr = (uintptr_t)ctx - offsetof(struct mdso_driver_ctx_impl,ctx);
+ addr = addr - offsetof(struct mdso_driver_ctx_alloc,ctx);
ictx = (struct mdso_driver_ctx_alloc *)addr;
mdso_free_driver_ctx_impl(ictx);
}