misdn: Fix reversed 'if' in st_own_ctrl
commit08cb3f60b2f866c906a5a779444b30ba8f9a93c8
authorDan Carpenter <error27@gmail.com>
Wed, 4 Nov 2009 16:27:09 +0000 (4 08:27 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 4 Nov 2009 16:27:09 +0000 (4 08:27 -0800)
treef4fbe2b67c16f411637416b2548389ff20559a3e
parent02303d2028aef19889415364fc5f7bb374887157
misdn: Fix reversed 'if' in st_own_ctrl

The current code probably returns -EINVAL a lot.  Otherwise it would oops.

Compile tested only.  Found by smatch (http://repo.or.cz/w/smatch.git).

Signed-off-by: Dan Carpenter <error27@gmail.com>
Cc: Karsten Keil <isdn@linux-pingi.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/isdn/mISDN/stack.c