2.4.36-stable kernel tree
リビジョン | 33a9787bd7dca9340e2735962de65e2c7c48285e (tree) |
---|---|
日時 | 2006-08-14 00:19:25 |
作者 | Willy Tarreau <w@1wt....> |
コミッター | Willy Tarreau |
[GCC4] fix build error in drivers/isdn/hisax/hfc_pci.c
This patch fixes this error with gcc 4 :
hfc_pci.c: In function 'setup_hfcpci':
hfc_pci.c:1745: error: invalid lvalue in assignment
@@ -1742,7 +1742,7 @@ setup_hfcpci(struct IsdnCard *card) | ||
1742 | 1742 | /* Allocate memory for FIFOS */ |
1743 | 1743 | /* Because the HFC-PCI needs a 32K physical alignment, we */ |
1744 | 1744 | /* need to allocate the double mem and align the address */ |
1745 | - if (!((void *) cs->hw.hfcpci.share_start = kmalloc(65536, GFP_KERNEL))) { | |
1745 | + if (!(cs->hw.hfcpci.share_start = kmalloc(65536, GFP_KERNEL))) { | |
1746 | 1746 | printk(KERN_WARNING "HFC-PCI: Error allocating memory for FIFO!\n"); |
1747 | 1747 | return 0; |
1748 | 1748 | } |