]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - drivers/s390/net/lcs.c
drivers/s390/net: Drop memory allocation cast
[mirror_ubuntu-bionic-kernel.git] / drivers / s390 / net / lcs.c
index 9b19ea13b4d8593302620a60da62bf8c653abdef..0f19d540b655be900be7e946fd0838c77d95bb03 100644 (file)
@@ -1238,8 +1238,7 @@ lcs_set_mc_addresses(struct lcs_card *card, struct in_device *in4_dev)
                ipm = lcs_check_addr_entry(card, im4, buf);
                if (ipm != NULL)
                        continue;       /* Address already in list. */
-               ipm = (struct lcs_ipm_list *)
-                       kzalloc(sizeof(struct lcs_ipm_list), GFP_ATOMIC);
+               ipm = kzalloc(sizeof(struct lcs_ipm_list), GFP_ATOMIC);
                if (ipm == NULL) {
                        pr_info("Not enough memory to add"
                                " new multicast entry!\n");