]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - drivers/char/synclinkmp.c
Merge branch 'upstream-fixes' of master.kernel.org:/pub/scm/linux/kernel/git/linville...
[mv-sheeva.git] / drivers / char / synclinkmp.c
index 53e8ccf94fe33be05e76f7d3f1b6c7a6b8a2f394..8f4d67afe5bf99fe1daea30940640b2c1cbbbe72 100644 (file)
@@ -2730,7 +2730,7 @@ static int startup(SLMP_INFO * info)
                return 0;
 
        if (!info->tx_buf) {
-               info->tx_buf = (unsigned char *)kmalloc(info->max_frame_size, GFP_KERNEL);
+               info->tx_buf = kmalloc(info->max_frame_size, GFP_KERNEL);
                if (!info->tx_buf) {
                        printk(KERN_ERR"%s(%d):%s can't allocate transmit buffer\n",
                                __FILE__,__LINE__,info->device_name);
@@ -3798,7 +3798,7 @@ static SLMP_INFO *alloc_dev(int adapter_num, int port_num, struct pci_dev *pdev)
 {
        SLMP_INFO *info;
 
-       info = (SLMP_INFO *)kmalloc(sizeof(SLMP_INFO),
+       info = kmalloc(sizeof(SLMP_INFO),
                 GFP_KERNEL);
 
        if (!info) {