Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pkg/lwip: fix code style #18357

Merged
merged 1 commit into from
Jul 22, 2022
Merged

pkg/lwip: fix code style #18357

merged 1 commit into from
Jul 22, 2022

Conversation

maribu
Copy link
Member

@maribu maribu commented Jul 22, 2022

Contribution description

This mostly converts switch statements from double indent style to Linux kernel style, as required per the coding convention.

From the C compiler perspective, this is a whitespace only change.

Testing procedure

Double checking that changes are indeed white-space only is sufficient. Sadly, the github diff view doesn't really work well here...

Issues/PRs references

I split this out of a yet to be opened PR, so that the PR with actual changes only contains actual changes.

This mostly converts switch statements from double indent style to
Linux kernel style, as required per the coding convention.

From the C compiler perspective, this is a whitespace only change.
@maribu maribu added Area: network Area: Networking Impact: minor The PR is small in size and might only require a quick look of a knowledgeable reviewer Area: pkg Area: External package ports Type: cleanup The issue proposes a clean-up / The PR cleans-up parts of the codebase / documentation CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR labels Jul 22, 2022
@maribu maribu requested a review from miri64 as a code owner July 22, 2022 10:57
@@ -96,83 +96,82 @@ err_t lwip_netdev_init(struct netif *netif)
netif->hostname = "riot";
#endif /* LWIP_NETIF_HOSTNAME */

/* XXX: for now assume its Ethernet, since netdev is implemented only by ethernet drivers */
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: This comment is obsolete, below both Ethernet and IEEE 802.15.4 devices are handled differently. There is no "this must be Ethernet" assumption baked in anywhere.

@maribu maribu merged commit 99529c0 into RIOT-OS:master Jul 22, 2022
@maribu maribu deleted the lwip/code-style branch July 22, 2022 14:59
@maribu
Copy link
Member Author

maribu commented Jul 22, 2022

Thx :)

@maribu maribu added this to the Release 2022.10 milestone Oct 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: network Area: Networking Area: pkg Area: External package ports CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Impact: minor The PR is small in size and might only require a quick look of a knowledgeable reviewer Type: cleanup The issue proposes a clean-up / The PR cleans-up parts of the codebase / documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants