You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Simplify the init routine by:
- Removing unnecessary temporary variables
- Adding spacing between declarations and statements
- Using early return on alloc_chrdev_region() failure
- Propagating the actual error code instead of always returning -1
- Dropping redundant checks in the error path
This makes the error handling clearer and more consistent with
common kernel coding style.
0 commit comments