You need to stop your mail client word-wrapping patches. It looks like
something has converted tabs to spaces, too.
[...]
This is redundant with the kernel-doc comment.
This doesn't check for a space after, which you rely on later on. (What if
length == 15?) Also, explicitly writing the length of a literal string is
error-prone. Seems like it would be better to do something like:
static const char command[] = "net clear-stats ";
...
if (!strncmp(command, buffer, sizeof(command) - 1)) {
Shouldn't this return an error if the device doesn't exist?
This won't work; the function updates err unconditionally further up!
The context for this chunk seems to be too short.
There are a few formatting oddities; checkpatch.pl will point them out.
Ben.
--
Ben Hutchings, Senior Software Engineer, Solarflare Communications
Not speaking for my employer; that's the marketing department's job.
--