]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
staging: slicoss: clean the spinlock code in slic_entry_open
authorDevendra Naga <devendra.aaru@gmail.com>
Wed, 5 Sep 2012 10:03:48 +0000 (15:33 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 5 Sep 2012 18:59:51 +0000 (11:59 -0700)
commit71329965273d65d6de1bc34c6b314515d52ae49a
tree7ebea628fd7a4a9f3915c8b1a4b6b74baa4c75d5
parent92adcc805764f5b5c552741298c079ce2de8757e
staging: slicoss: clean the spinlock code in slic_entry_open

the locked variable is used for checking whether the function
acquired lock, then unlock. actually with out this we
can achieve the same lock and unlock senario, remove the locked
variable and also cleanup the code around.

Signed-off-by: Devendra Naga <devendra.aaru@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/slicoss/slicoss.c