diff options
author | Kristian Høgsberg <krh@redhat.com> | 2007-05-09 19:23:14 -0400 |
---|---|---|
committer | Stefan Richter <stefanr@s5r6.in-berlin.de> | 2007-05-10 18:24:14 +0200 |
commit | 2d826cc5c791bdc5f5651324c485746be9492be0 (patch) | |
tree | 7c46ff209d06f1f8949aa2c3e10491594d10e203 /drivers/firewire/fw-transaction.c | |
parent | 213d7bbd76673fb1b26f1786af180bac07e57652 (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.c | 6 |
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) { struct fw_packet *packet; - packet = kzalloc(sizeof *packet, GFP_ATOMIC); + packet = kzalloc(sizeof(*packet), GFP_ATOMIC); if (packet == NULL) return; @@ -572,7 +572,7 @@ allocate_request(struct fw_packet *p) return NULL; } - request = kmalloc(sizeof *request + length, GFP_ATOMIC); + request = kmalloc(sizeof(*request) + length, GFP_ATOMIC); if (request == NULL) return NULL; @@ -592,7 +592,7 @@ allocate_request(struct fw_packet *p) if (data) memcpy(request->data, data, length); - memcpy(request->request_header, p->header, sizeof p->header); + memcpy(request->request_header, p->header, sizeof(p->header)); return request; } |