[riot-notifications] [RIOT-OS/RIOT] sys/net/gnrc: Remove code duplication (#16502)

François Berder notifications at github.com
Thu May 27 10:46:11 CEST 2021


### Contribution description

While using [simian](https://www.harukizaemon.com/simian/) (a tool that can detect code duplication) on RIOT-OS, I found two snippets of code that were good candidates for being factorized.
This pull request does not change the behavior of gnrc.

### Testing procedure

I compiled for the SAMD21-XPRO board the following examples: `gnrc_minimal`, `gnrc_networking` and `gnrc_networking_mac`.

### Issues/PRs references

None.
You can view, comment on, or merge this pull request online at:

  https://github.com/RIOT-OS/RIOT/pull/16502

-- Commit Summary --

  * gnrc/lwmac: Reduce code duplication
  * gnrc/gomach: Reduce code duplication

-- File Changes --

    M sys/net/gnrc/link_layer/gomach/gomach.c (48)
    M sys/net/gnrc/link_layer/lwmac/lwmac.c (48)

-- Patch Links --

https://github.com/RIOT-OS/RIOT/pull/16502.patch
https://github.com/RIOT-OS/RIOT/pull/16502.diff

-- 
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/16502
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210527/c7101957/attachment.htm>


More information about the notifications mailing list