Char: isicom, cleanup locking
authorJiri Slaby <jirislaby@gmail.com>
Tue, 17 Jul 2007 11:05:17 +0000 (04:05 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Tue, 17 Jul 2007 17:23:10 +0000 (10:23 -0700)
commit5b21f9dddd0817b761f1407f1950bee4f257411a
tree5c63ba601347b3723d7466bc5c5afd21256829b4
parentc4923b4f13156455a9e84f0b918866aef300cc57
Char: isicom, cleanup locking

Don't spin processor when not needed (use sleep instead of delay).  Don't
release the lock when needed in next iteration -- this actually fixes a bug --
missing braces

Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/char/isicom.c