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)
commit91f02b3dd8311b48c021e8667a84dfc2d6445a03
treed2f63529bf868ac3cec2f7ffce5afd5b91e71381
parent09095fdc9e5d5438051fc4e92867f1aff764cd21
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