]> git.hungrycats.org Git - linux/commitdiff
[ARM] ecard.c: Remove unnecessary context checks.
authorRussell King <rmk@flint.arm.linux.org.uk>
Fri, 8 Oct 2004 23:54:13 +0000 (00:54 +0100)
committerRussell King <rmk@flint.arm.linux.org.uk>
Fri, 8 Oct 2004 23:54:13 +0000 (00:54 +0100)
arch/arm/kernel/ecard.c

index 964b2de8481cd14ffe7cff7f66e40f0f0a85995d..67ac4ec53922d4d3ed329ad10121545df0adf2d2 100644 (file)
@@ -295,12 +295,6 @@ static void ecard_call(struct ecard_request *req)
 {
        DECLARE_COMPLETION(completion);
 
-       /*
-        * Make sure we have a context that is able to sleep.
-        */
-       if (current == &init_task || in_interrupt())
-               BUG();
-
        req->complete = &completion;
 
        down(&ecard_sem);