OSDN Git Service

[GCC4] fix build error in drivers/isdn/hisax/hfc_pci.c
authorWilly Tarreau <w@1wt.eu>
Sun, 13 Aug 2006 09:44:18 +0000 (11:44 +0200)
committerWilly Tarreau <w@1wt.eu>
Sun, 13 Aug 2006 15:19:25 +0000 (17:19 +0200)
This patch fixes this error with gcc 4 :

hfc_pci.c: In function 'setup_hfcpci':
hfc_pci.c:1745: error: invalid lvalue in assignment

drivers/isdn/hisax/hfc_pci.c

index 01cf494..9c0607b 100644 (file)
@@ -1742,7 +1742,7 @@ setup_hfcpci(struct IsdnCard *card)
                /* Allocate memory for FIFOS */
                /* Because the HFC-PCI needs a 32K physical alignment, we */
                /* need to allocate the double mem and align the address */
-               if (!((void *) cs->hw.hfcpci.share_start = kmalloc(65536, GFP_KERNEL))) {
+               if (!(cs->hw.hfcpci.share_start = kmalloc(65536, GFP_KERNEL))) {
                        printk(KERN_WARNING "HFC-PCI: Error allocating memory for FIFO!\n");
                        return 0;
                }