diff options
author | Julia Lawall <julia@diku.dk> | 2010-05-16 17:15:13 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-05-18 01:42:54 -0400 |
commit | ae57b20a0a1d3aa6cc35b51355949177de94aece (patch) | |
tree | e75b39b31da224459e2f87557ea2110568755e97 /drivers/s390/net/lcs.c | |
parent | 95718c1c25370b2c85061a4d8dfab2831b3ad280 (diff) |
drivers/s390/net: Drop memory allocation cast
Drop cast on the result of kmalloc and similar functions.
The semantic patch that makes this change is as follows:
(http://coccinelle.lip6.fr/)
// <smpl>
@@
type T;
@@
- (T *)
(\(kmalloc\|kzalloc\|kcalloc\|kmem_cache_alloc\|kmem_cache_zalloc\|
kmem_cache_alloc_node\|kmalloc_node\|kzalloc_node\)(...))
// </smpl>
Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Frank Blaschka <frank.blaschka@de.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/s390/net/lcs.c')
-rw-r--r-- | drivers/s390/net/lcs.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/s390/net/lcs.c b/drivers/s390/net/lcs.c index 9b19ea13b4d8..0f19d540b655 100644 --- a/drivers/s390/net/lcs.c +++ b/drivers/s390/net/lcs.c | |||
@@ -1238,8 +1238,7 @@ lcs_set_mc_addresses(struct lcs_card *card, struct in_device *in4_dev) | |||
1238 | ipm = lcs_check_addr_entry(card, im4, buf); | 1238 | ipm = lcs_check_addr_entry(card, im4, buf); |
1239 | if (ipm != NULL) | 1239 | if (ipm != NULL) |
1240 | continue; /* Address already in list. */ | 1240 | continue; /* Address already in list. */ |
1241 | ipm = (struct lcs_ipm_list *) | 1241 | ipm = kzalloc(sizeof(struct lcs_ipm_list), GFP_ATOMIC); |
1242 | kzalloc(sizeof(struct lcs_ipm_list), GFP_ATOMIC); | ||
1243 | if (ipm == NULL) { | 1242 | if (ipm == NULL) { |
1244 | pr_info("Not enough memory to add" | 1243 | pr_info("Not enough memory to add" |
1245 | " new multicast entry!\n"); | 1244 | " new multicast entry!\n"); |