From 1d72ca61b015f5d5b7f5509e1d3bc6fcee82e379 Mon Sep 17 00:00:00 2001 From: midipix Date: Wed, 26 Oct 2016 17:03:35 -0400 Subject: amgc_free_driver_ctx(): fix readability. --- src/driver/amgc_driver_ctx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/driver/amgc_driver_ctx.c b/src/driver/amgc_driver_ctx.c index 728ecf5..d287008 100644 --- a/src/driver/amgc_driver_ctx.c +++ b/src/driver/amgc_driver_ctx.c @@ -295,8 +295,8 @@ void amgc_free_driver_ctx(struct amgc_driver_ctx * ctx) uintptr_t addr; if (ctx) { - addr = (uintptr_t)ctx - offsetof(struct amgc_driver_ctx_alloc,ctx); - addr = addr - offsetof(struct amgc_driver_ctx_impl,ctx); + addr = (uintptr_t)ctx - offsetof(struct amgc_driver_ctx_impl,ctx); + addr = addr - offsetof(struct amgc_driver_ctx_alloc,ctx); ictx = (struct amgc_driver_ctx_alloc *)addr; amgc_free_driver_ctx_impl(ictx); } -- cgit v1.2.3