diff options
author | midipix <writeonce@midipix.org> | 2016-10-24 19:41:45 -0400 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2016-11-10 23:35:52 -0500 |
commit | 95fab3eca1fbce8fb3b42692ba990848af6848fa (patch) | |
tree | 968486bea5eac26888fff7c14a79715212d4ea4c | |
parent | db655ef1d5f9e9c4448d2211412ade66c6e98a16 (diff) | |
download | perk-95fab3eca1fbce8fb3b42692ba990848af6848fa.tar.bz2 perk-95fab3eca1fbce8fb3b42692ba990848af6848fa.tar.xz |
pe_free_driver_ctx(): fix readability.
-rw-r--r-- | src/driver/pe_driver_ctx.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/driver/pe_driver_ctx.c b/src/driver/pe_driver_ctx.c index 7ef510e..fdc2704 100644 --- a/src/driver/pe_driver_ctx.c +++ b/src/driver/pe_driver_ctx.c @@ -240,8 +240,8 @@ void pe_free_driver_ctx(struct pe_driver_ctx * ctx) uintptr_t addr; if (ctx) { - addr = (uintptr_t)ctx - offsetof(struct pe_driver_ctx_alloc,ctx); - addr = addr - offsetof(struct pe_driver_ctx_impl,ctx); + addr = (uintptr_t)ctx - offsetof(struct pe_driver_ctx_impl,ctx); + addr = addr - offsetof(struct pe_driver_ctx_alloc,ctx); ictx = (struct pe_driver_ctx_alloc *)addr; pe_free_driver_ctx_impl(ictx); } |