From a136610f243aa5c67b8646b07a3a4cb53ee4e4b8 Mon Sep 17 00:00:00 2001 From: midipix Date: Mon, 24 Oct 2016 19:40:14 -0400 Subject: slbt_free_driver_ctx(): fix readability. --- src/driver/slbt_driver_ctx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/driver/slbt_driver_ctx.c b/src/driver/slbt_driver_ctx.c index 088f431..6b2cfaa 100644 --- a/src/driver/slbt_driver_ctx.c +++ b/src/driver/slbt_driver_ctx.c @@ -1150,8 +1150,8 @@ void slbt_free_driver_ctx(struct slbt_driver_ctx * ctx) uintptr_t addr; if (ctx) { - addr = (uintptr_t)ctx - offsetof(struct slbt_driver_ctx_alloc,ctx); - addr = addr - offsetof(struct slbt_driver_ctx_impl,ctx); + addr = (uintptr_t)ctx - offsetof(struct slbt_driver_ctx_impl,ctx); + addr = addr - offsetof(struct slbt_driver_ctx_alloc,ctx); ictx = (struct slbt_driver_ctx_alloc *)addr; slbt_free_driver_ctx_impl(ictx); } -- cgit v1.2.3