]> 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)
commitf5b71e8a1007dde31b3295e26a07ec55e44fccbd
treed2f63529bf868ac3cec2f7ffce5afd5b91e71381
parent022b73c2cad82624323ead1c7152127653a3f66e
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