Commit 9c733a5a authored by Russell King's avatar Russell King

[ARM] ecard.c: Remove unnecessary context checks.

parent 31d6168a
...@@ -295,12 +295,6 @@ static void ecard_call(struct ecard_request *req) ...@@ -295,12 +295,6 @@ static void ecard_call(struct ecard_request *req)
{ {
DECLARE_COMPLETION(completion); DECLARE_COMPLETION(completion);
/*
* Make sure we have a context that is able to sleep.
*/
if (current == &init_task || in_interrupt())
BUG();
req->complete = &completion; req->complete = &completion;
down(&ecard_sem); down(&ecard_sem);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment