[riot-notifications] [RIOT-OS/RIOT] netdev: add netdev_register_signal (#16922)

benpicco notifications at github.com
Thu Sep 30 16:38:19 CEST 2021


@benpicco commented on this pull request.



> @@ -374,6 +397,10 @@ static inline void netdev_register(struct netdev *dev, netdev_type_t type, uint8
     (void) type;
     (void) index;
 #endif
+
+    if IS_ACTIVE(CONFIG_NETDEV_REGISTER_SIGNAL_CB) {

Since `CONFIG_NETDEV_REGISTER_SIGNAL_CB` is always defined we can just do

```suggestion
    if (CONFIG_NETDEV_REGISTER_SIGNAL_CB) {
```

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/16922#pullrequestreview-767955547
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210930/32e1e956/attachment-0001.htm>


More information about the notifications mailing list