at86rf230: remove multiple dereferencing for ctx
authorAlexander Aring <alex.aring@gmail.com>
Sun, 1 Mar 2015 20:55:32 +0000 (21:55 +0100)
committerMarcel Holtmann <marcel@holtmann.org>
Tue, 3 Mar 2015 01:15:25 +0000 (02:15 +0100)
commit31fa74344c1e75fd66f7b43f456ae9e0a137ba69
tree9121d3fe566b5116b514a436f408a0bd61fa36fc
parentcca990c85d37a9ed42d2cac53c619abec7faa12f
at86rf230: remove multiple dereferencing for ctx

This patch cleanups the referencing for the state change context
variable. The state change context should only set once and this is by
initial a state change. This patch will use the initial state change
variable in the complete handler of the state change by using the ctx
context which should be always the same like the initial state change
context.

Signed-off-by: Alexander Aring <alex.aring@gmail.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/net/ieee802154/at86rf230.c