]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - drivers/s390/net/ctcm_main.c
drivers/s390/net: Drop memory allocation cast
[net-next-2.6.git] / drivers / s390 / net / ctcm_main.c
index e35713dd05040d6ef75e26f18833bf447469db27..4ecafbf91211b72775315a95e20a322e0e11e834 100644 (file)
@@ -1364,8 +1364,7 @@ static int add_channel(struct ccw_device *cdev, enum ctcm_channel_types type,
 
        ch->protocol = priv->protocol;
        if (IS_MPC(priv)) {
-               ch->discontact_th = (struct th_header *)
-                               kzalloc(TH_HEADER_LENGTH, gfp_type());
+               ch->discontact_th = kzalloc(TH_HEADER_LENGTH, gfp_type());
                if (ch->discontact_th == NULL)
                                        goto nomem_return;
 
@@ -1379,8 +1378,7 @@ static int add_channel(struct ccw_device *cdev, enum ctcm_channel_types type,
        } else
                ccw_num = 8;
 
-       ch->ccw = (struct ccw1 *)
-               kzalloc(ccw_num * sizeof(struct ccw1), GFP_KERNEL | GFP_DMA);
+       ch->ccw = kzalloc(ccw_num * sizeof(struct ccw1), GFP_KERNEL | GFP_DMA);
        if (ch->ccw == NULL)
                                        goto nomem_return;