]> git.neil.brown.name Git - history.git/commit
[PATCH] ip2: fix double operator
authorAndrew Morton <akpm@osdl.org>
Thu, 18 Mar 2004 23:01:26 +0000 (15:01 -0800)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Thu, 18 Mar 2004 23:01:26 +0000 (15:01 -0800)
commitac1a964df79e38881598b5e2cfc0aff9d423946f
tree027ccf03fa1eb737fc027ce415b4f1d6e856ea61
parent56b586b80fb4e2a30862cab324b2498033327945
[PATCH] ip2: fix double operator

From: "Randy.Dunlap" <rddunlap@osdl.org>

This trivial patch fixes the bug #320:

http://bugme.osdl.org/show_bug.cgi?id=320

The additional comment:

http://bugme.osdl.org/show_bug.cgi?id=320#c1

Is wrong, because it will send the command twice.

We only want to see if the command got success, thus is not necessary
to test against < 0 (if the return value is not 1, we got a error).

Note that I'm using the function (bad) style.
drivers/char/ip2/i2lib.c