summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-10-25 22:15:02 -0400
committermidipix <writeonce@midipix.org>2016-10-25 22:47:15 -0400
commit1cf7fa03099e1a80385791f281a00622cf429296 (patch)
tree9076339f0779b7c8b40ce465fe3ddea113be16bc /src
parent7a0b562760299dde7d4a07c430c7c47b67a8e5e7 (diff)
downloadsofort-1cf7fa03099e1a80385791f281a00622cf429296.tar.bz2
sofort-1cf7fa03099e1a80385791f281a00622cf429296.tar.xz
sfrt_free_driver_ctx(): fix readability.
Diffstat (limited to 'src')
-rw-r--r--src/driver/sfrt_driver_ctx.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/driver/sfrt_driver_ctx.c b/src/driver/sfrt_driver_ctx.c
index 5dc6331..d065474 100644
--- a/src/driver/sfrt_driver_ctx.c
+++ b/src/driver/sfrt_driver_ctx.c
@@ -197,8 +197,8 @@ void sfrt_free_driver_ctx(struct sfrt_driver_ctx * ctx)
uintptr_t addr;
if (ctx) {
- addr = (uintptr_t)ctx - offsetof(struct sfrt_driver_ctx_alloc,ctx);
- addr = addr - offsetof(struct sfrt_driver_ctx_impl,ctx);
+ addr = (uintptr_t)ctx - offsetof(struct sfrt_driver_ctx_impl,ctx);
+ addr = addr - offsetof(struct sfrt_driver_ctx_alloc,ctx);
ictx = (struct sfrt_driver_ctx_alloc *)addr;
sfrt_free_driver_ctx_impl(ictx);
}