mac802154_header_create() calls ieee802154_mlme_ops(dev)->get_dsn(dev), but 'dev' is always a mac802154 device, therefore we can just call mac802154_dev_get_dsn() instead directly. Signed-off-by: Lennert Buytenhek <buytenh@xxxxxxxxxxxxxx> --- net/mac802154/iface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/mac802154/iface.c b/net/mac802154/iface.c index 91b75ab..f59cc87 100644 --- a/net/mac802154/iface.c +++ b/net/mac802154/iface.c @@ -374,7 +374,7 @@ static int mac802154_header_create(struct sk_buff *skb, hdr.fc.type = cb->type; hdr.fc.security_enabled = cb->secen; hdr.fc.ack_request = cb->ackreq; - hdr.seq = ieee802154_mlme_ops(dev)->get_dsn(dev); + hdr.seq = mac802154_dev_get_dsn(dev); if (mac802154_set_header_security(sdata, &hdr, cb) < 0) return -EINVAL; -- 2.1.0 -- To unsubscribe from this list: send the line "unsubscribe linux-wpan" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html