aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/firewire/fw-transaction.c
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@redhat.com>2007-05-09 19:23:14 -0400
committerStefan Richter <stefanr@s5r6.in-berlin.de>2007-05-10 12:24:14 -0400
commit2d826cc5c791bdc5f5651324c485746be9492be0 (patch)
tree7c46ff209d06f1f8949aa2c3e10491594d10e203 /drivers/firewire/fw-transaction.c
parent213d7bbd76673fb1b26f1786af180bac07e57652 (diff)
firewire: Always use parens with sizeof.
Signed-off-by: Kristian Hoegsberg <krh@redhat.com> Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
Diffstat (limited to 'drivers/firewire/fw-transaction.c')
-rw-r--r--drivers/firewire/fw-transaction.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/firewire/fw-transaction.c b/drivers/firewire/fw-transaction.c
index 01c438f1c670..80d0121463d0 100644
--- a/drivers/firewire/fw-transaction.c
+++ b/drivers/firewire/fw-transaction.c
@@ -305,7 +305,7 @@ static void send_phy_packet(struct fw_card *card, u32 data, int generation)
305{ 305{
306 struct fw_packet *packet; 306 struct fw_packet *packet;
307 307
308 packet = kzalloc(sizeof *packet, GFP_ATOMIC); 308 packet = kzalloc(sizeof(*packet), GFP_ATOMIC);
309 if (packet == NULL) 309 if (packet == NULL)
310 return; 310 return;
311 311
@@ -572,7 +572,7 @@ allocate_request(struct fw_packet *p)
572 return NULL; 572 return NULL;
573 } 573 }
574 574
575 request = kmalloc(sizeof *request + length, GFP_ATOMIC); 575 request = kmalloc(sizeof(*request) + length, GFP_ATOMIC);
576 if (request == NULL) 576 if (request == NULL)
577 return NULL; 577 return NULL;
578 578
@@ -592,7 +592,7 @@ allocate_request(struct fw_packet *p)
592 if (data) 592 if (data)
593 memcpy(request->data, data, length); 593 memcpy(request->data, data, length);
594 594
595 memcpy(request->request_header, p->header, sizeof p->header); 595 memcpy(request->request_header, p->header, sizeof(p->header));
596 596
597 return request; 597 return request;
598} 598}