Commit 00fc3072e484c1c6fdbd9c3b1851f866000a6cb9

Authored by Stefan Richter
1 parent 9c939e4df4

ieee1394: remove superfluous assertions

hpsb_read, hpsb_write, hpsb_lock are sleeping functions which nobody is
in danger to use in atomic context.  Besides, in_interrupt does not
cover all types of atomic context.

Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>

Showing 1 changed file with 0 additions and 6 deletions Side-by-side Diff

drivers/ieee1394/ieee1394_transactions.c
... ... @@ -501,8 +501,6 @@
501 501 if (length == 0)
502 502 return -EINVAL;
503 503  
504   - BUG_ON(in_interrupt()); // We can't be called in an interrupt, yet
505   -
506 504 packet = hpsb_make_readpacket(host, node, addr, length);
507 505  
508 506 if (!packet) {
... ... @@ -550,8 +548,6 @@
550 548 if (length == 0)
551 549 return -EINVAL;
552 550  
553   - BUG_ON(in_interrupt()); // We can't be called in an interrupt, yet
554   -
555 551 packet = hpsb_make_writepacket(host, node, addr, buffer, length);
556 552  
557 553 if (!packet)
... ... @@ -576,8 +572,6 @@
576 572 {
577 573 struct hpsb_packet *packet;
578 574 int retval = 0;
579   -
580   - BUG_ON(in_interrupt());
581 575  
582 576 packet = hpsb_make_lockpacket(host, node, addr, extcode, data, arg);
583 577 if (!packet)