]> git.baikalelectronics.ru Git - kernel.git/commit
mac802154: cfg: remove test and set checks
authorAlexander Aring <alex.aring@gmail.com>
Mon, 10 Aug 2015 19:15:55 +0000 (21:15 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Mon, 10 Aug 2015 18:43:06 +0000 (20:43 +0200)
commit86879d769bef7decaca8cde2fcb2ca5545045bf0
treed2f63529bf868ac3cec2f7ffce5afd5b91e71381
parent35651195cf875ed7d014c65e1997258138b37df7
mac802154: cfg: remove test and set checks

This patch removes several checks if a value is really changed. This
makes only sense if we have another layer call e.g. calling the
driver_ops which is done by callbacks like "set_channel".

For MAC settings which need to be set by phy registers (if the phy
supports that handling) this is set by doing an interface up currently
and are not direct driver_ops calls, so we remove the checks from these
configuration callbacks.

Reviewed-by: Stefan Schmidt <stefan@osg.samsung.com>
Suggested-by: Phoebe Buckheister <phoebe.buckheister@itwm.fraunhofer.de>
Signed-off-by: Alexander Aring <alex.aring@gmail.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/mac802154/cfg.c