aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ieee1394/eth1394.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ieee1394/eth1394.c')
-rw-r--r--drivers/ieee1394/eth1394.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/ieee1394/eth1394.c b/drivers/ieee1394/eth1394.c
index 6984a921b59b..30fa0d43a43a 100644
--- a/drivers/ieee1394/eth1394.c
+++ b/drivers/ieee1394/eth1394.c
@@ -352,12 +352,12 @@ static int eth1394_probe(struct device *dev)
352 if (!hi) 352 if (!hi)
353 return -ENOENT; 353 return -ENOENT;
354 354
355 new_node = kmalloc(sizeof(struct eth1394_node_ref), 355 new_node = kmalloc(sizeof(*new_node),
356 in_interrupt() ? GFP_ATOMIC : GFP_KERNEL); 356 in_interrupt() ? GFP_ATOMIC : GFP_KERNEL);
357 if (!new_node) 357 if (!new_node)
358 return -ENOMEM; 358 return -ENOMEM;
359 359
360 node_info = kmalloc(sizeof(struct eth1394_node_info), 360 node_info = kmalloc(sizeof(*node_info),
361 in_interrupt() ? GFP_ATOMIC : GFP_KERNEL); 361 in_interrupt() ? GFP_ATOMIC : GFP_KERNEL);
362 if (!node_info) { 362 if (!node_info) {
363 kfree(new_node); 363 kfree(new_node);
@@ -433,12 +433,12 @@ static int eth1394_update(struct unit_directory *ud)
433 node = eth1394_find_node(&priv->ip_node_list, ud); 433 node = eth1394_find_node(&priv->ip_node_list, ud);
434 434
435 if (!node) { 435 if (!node) {
436 node = kmalloc(sizeof(struct eth1394_node_ref), 436 node = kmalloc(sizeof(*node),
437 in_interrupt() ? GFP_ATOMIC : GFP_KERNEL); 437 in_interrupt() ? GFP_ATOMIC : GFP_KERNEL);
438 if (!node) 438 if (!node)
439 return -ENOMEM; 439 return -ENOMEM;
440 440
441 node_info = kmalloc(sizeof(struct eth1394_node_info), 441 node_info = kmalloc(sizeof(*node_info),
442 in_interrupt() ? GFP_ATOMIC : GFP_KERNEL); 442 in_interrupt() ? GFP_ATOMIC : GFP_KERNEL);
443 if (!node_info) { 443 if (!node_info) {
444 kfree(node); 444 kfree(node);
@@ -1014,7 +1014,7 @@ static inline int new_fragment(struct list_head *frag_info, int offset, int len)
1014 } 1014 }
1015 } 1015 }
1016 1016
1017 new = kmalloc(sizeof(struct fragment_info), GFP_ATOMIC); 1017 new = kmalloc(sizeof(*new), GFP_ATOMIC);
1018 if (!new) 1018 if (!new)
1019 return -ENOMEM; 1019 return -ENOMEM;
1020 1020
@@ -1033,7 +1033,7 @@ static inline int new_partial_datagram(struct net_device *dev,
1033{ 1033{
1034 struct partial_datagram *new; 1034 struct partial_datagram *new;
1035 1035
1036 new = kmalloc(sizeof(struct partial_datagram), GFP_ATOMIC); 1036 new = kmalloc(sizeof(*new), GFP_ATOMIC);
1037 if (!new) 1037 if (!new)
1038 return -ENOMEM; 1038 return -ENOMEM;
1039 1039