netcat.c: fix up basic whitespace issues

Linux kernel code has a specific style, so fix up the basic whitespace
issues here.

Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
netcat: use /* instead of // for comments

This is C, not C++

Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
netcat: statics are always initialized to 0

So there's no need to do it again.

Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
netcat: init/exit module functions should be explicit.

Don't rely on the 2.2 module init function naming, tell the world
exactly what the module init/exit functions are, and make them static.

Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
netcat: other minor coding style tweaks

Some more whitespace cleanups to make the checkpatch.pl tool happy.

Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
netcat: fix up "raw" printk messages

Use the "proper" pr_*() calls instead, which adds the format string
correectly.

Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
netcat: use named initializer for the minor device

Also put the mode in the initializer, no need to specify it later on.

Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
netcat: a module can not control its own reference count

If it tries to do its own reference count, it is too late, the race
could have already happened.  That's why the kernel does it
automatically for you if you set the .owner field in the fops structure,
so do that instead.

Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
netcat: of course "success" is 0, this is Linux!

0 is "good", -SOMETHING is always bad, no need to use a define for 0.

Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
netcat: move variables around to avoid forward declarations

No need for forward declarations, just move the code around a bit,
saving us a number of lines.

Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Merge pull request #11 from gregkh/codingstyle

A number of coding style cleanups for the netcat kernel module