Skip to content

Fix var name in cdev_alloc example - #386

Merged
jserv merged 1 commit into
sysprog21:masterfrom
pwnmonk:fix-cdev-variable-name
Jul 27, 2026
Merged

jserv merged 1 commit into
sysprog21:masterfrom
pwnmonk:fix-cdev-variable-name

Conversation

@pwnmonk

@pwnmonk pwnmonk commented Jul 27, 2026 •

Copy link
Copy Markdown
Contributor

The cdev_alloc() example declares the variable as my_dev but assigns the ops field through my_cdev.

This change uses a consistent variable name throughout the example.


Summary by cubic

Use a consistent variable name in the cdev_alloc() example, renaming my_dev to my_cdev so allocation and ops assignment match. This avoids confusion for readers copying the snippet.

Written for commit 47eb0af. Summary will update on new commits.

Review in cubic

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

No issues found across 1 file

Re-trigger cubic

@jserv
jserv merged commit b643499 into sysprog21:master Jul 27, 2026
8 checks passed
@jserv

jserv commented Jul 27, 2026

Copy link
Copy Markdown
Contributor

Thank @pwnmonk for contributing!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants