Welcome to the Linux Foundation Forum!

Kernel code question?

Hey! I looked into the github linux Kernel code and there might have found some potential of saving cycles.
I didn't know haw to act, so I made an account in here to ask questions.

For example in:
https://github.com/torvalds/linux/blob/master/kernel/printk/printk.c 1497 - 1499
-> static int syslog_print(char __user *buf, int size)
{
...
while (size > 0) {
size_t n;
size_t skip;
...

shouldn't that one be better?

...
size_t n;
size_t skip;
while (size > 0) {
    ...

What do you think?

Categories

Upcoming Training