diff options
author | Stefan Richter <stefanr@s5r6.in-berlin.de> | 2007-08-03 14:56:31 -0400 |
---|---|---|
committer | Stefan Richter <stefanr@s5r6.in-berlin.de> | 2007-10-16 18:00:01 -0400 |
commit | 930e4b7fe3b4e1c4e14b9c22e4c9c74dc8db75f3 (patch) | |
tree | 08a19760d9e2d2ad7d2784e30016ef92f807fd51 /drivers | |
parent | 1415d9189e8c59aa9c77a3bba419dcea062c145f (diff) |
firewire: fw-core: local variable shadows a global one
Sparse warned about it although it was apparently harmless:
drivers/firewire/fw-cdev.c:624:23: warning: symbol 'interrupt' shadows an earlier one
include/asm/hw_irq.h:29:13: originally declared here
Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/firewire/fw-cdev.c | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/drivers/firewire/fw-cdev.c b/drivers/firewire/fw-cdev.c index 06471302200f..b960fd996918 100644 --- a/drivers/firewire/fw-cdev.c +++ b/drivers/firewire/fw-cdev.c | |||
@@ -621,20 +621,19 @@ iso_callback(struct fw_iso_context *context, u32 cycle, | |||
621 | size_t header_length, void *header, void *data) | 621 | size_t header_length, void *header, void *data) |
622 | { | 622 | { |
623 | struct client *client = data; | 623 | struct client *client = data; |
624 | struct iso_interrupt *interrupt; | 624 | struct iso_interrupt *irq; |
625 | 625 | ||
626 | interrupt = kzalloc(sizeof(*interrupt) + header_length, GFP_ATOMIC); | 626 | irq = kzalloc(sizeof(*irq) + header_length, GFP_ATOMIC); |
627 | if (interrupt == NULL) | 627 | if (irq == NULL) |
628 | return; | 628 | return; |
629 | 629 | ||
630 | interrupt->interrupt.type = FW_CDEV_EVENT_ISO_INTERRUPT; | 630 | irq->interrupt.type = FW_CDEV_EVENT_ISO_INTERRUPT; |
631 | interrupt->interrupt.closure = client->iso_closure; | 631 | irq->interrupt.closure = client->iso_closure; |
632 | interrupt->interrupt.cycle = cycle; | 632 | irq->interrupt.cycle = cycle; |
633 | interrupt->interrupt.header_length = header_length; | 633 | irq->interrupt.header_length = header_length; |
634 | memcpy(interrupt->interrupt.header, header, header_length); | 634 | memcpy(irq->interrupt.header, header, header_length); |
635 | queue_event(client, &interrupt->event, | 635 | queue_event(client, &irq->event, &irq->interrupt, |
636 | &interrupt->interrupt, | 636 | sizeof(irq->interrupt) + header_length, NULL, 0); |
637 | sizeof(interrupt->interrupt) + header_length, NULL, 0); | ||
638 | } | 637 | } |
639 | 638 | ||
640 | static int ioctl_create_iso_context(struct client *client, void *buffer) | 639 | static int ioctl_create_iso_context(struct client *client, void *buffer) |